Record Class AuditEvent
java.lang.Object
java.lang.Record
org.j7m.middleware.cluster.AuditEvent
- Record Components:
version- fleet generation of this eventoperationId- stable workflow identitynodeId- hosting target, or emptyphase- fixed transition namepreviousHash- previous event digest, or empty for firsthash- this event SHA-256
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.hash()Returns the value of thehashrecord component.final inthashCode()Returns a hash code value for this object.nodeId()Returns the value of thenodeIdrecord component.Returns the value of theoperationIdrecord component.phase()Returns the value of thephaserecord component.Returns the value of thepreviousHashrecord component.final StringtoString()Returns a string representation of this record class.longversion()Returns the value of theversionrecord component.
-
Constructor Details
-
AuditEvent
public AuditEvent(long version, String operationId, String nodeId, String phase, String previousHash, String hash) Creates an instance of aAuditEventrecord class.- Parameters:
version- the value for theversionrecord componentoperationId- the value for theoperationIdrecord componentnodeId- the value for thenodeIdrecord componentphase- the value for thephaserecord componentpreviousHash- the value for thepreviousHashrecord componenthash- the value for thehashrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
version
-
operationId
Returns the value of theoperationIdrecord component.- Returns:
- the value of the
operationIdrecord component
-
nodeId
-
phase
-
previousHash
Returns the value of thepreviousHashrecord component.- Returns:
- the value of the
previousHashrecord component
-
hash
-