Record Class ExecutionRecorder.RecordedEvent
java.lang.Object
java.lang.Record
com.soulfiremc.server.script.ExecutionRecorder.RecordedEvent
- Enclosing class:
ExecutionRecorder
-
Constructor Summary
ConstructorsConstructorDescriptionRecordedEvent(Instant timestamp, ExecutionRecorder.EventType type, String nodeId, Map<String, NodeValue> outputs, String message, long executionTimeNanos) Creates an instance of aRecordedEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexecutionTimeNanosrecord component.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.nodeId()Returns the value of thenodeIdrecord component.outputs()Returns the value of theoutputsrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
RecordedEvent
public RecordedEvent(Instant timestamp, ExecutionRecorder.EventType type, String nodeId, Map<String, NodeValue> outputs, String message, long executionTimeNanos) Creates an instance of aRecordedEventrecord class.- Parameters:
timestamp- the value for thetimestamprecord componenttype- the value for thetyperecord componentnodeId- the value for thenodeIdrecord componentoutputs- the value for theoutputsrecord componentmessage- the value for themessagerecord componentexecutionTimeNanos- the value for theexecutionTimeNanosrecord 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. -
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
nodeId
Returns the value of thenodeIdrecord component.- Returns:
- the value of the
nodeIdrecord component
-
outputs
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
executionTimeNanos
public long executionTimeNanos()Returns the value of theexecutionTimeNanosrecord component.- Returns:
- the value of the
executionTimeNanosrecord component
-