Record Class QueueStartEvent
java.lang.Object
java.lang.Record
com.zenith.event.queue.QueueStartEvent
-
Constructor Summary
ConstructorsConstructorDescriptionQueueStartEvent(boolean wasOnline, Duration wasOnlineDuration) Creates an instance of aQueueStartEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thewasOnlinerecord component.Returns the value of thewasOnlineDurationrecord component.
-
Constructor Details
-
QueueStartEvent
Creates an instance of aQueueStartEventrecord class.- Parameters:
wasOnline- the value for thewasOnlinerecord componentwasOnlineDuration- the value for thewasOnlineDurationrecord 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. -
wasOnline
public boolean wasOnline()Returns the value of thewasOnlinerecord component.- Returns:
- the value of the
wasOnlinerecord component
-
wasOnlineDuration
Returns the value of thewasOnlineDurationrecord component.- Returns:
- the value of the
wasOnlineDurationrecord component
-