Record Class WebsocketEndpoint.ReceiveTiming
java.lang.Object
java.lang.Record
io.fluxzero.sdk.common.websocket.WebsocketEndpoint.ReceiveTiming
- Record Components:
frameReceivedTimestamp- wall-clock timestamp at the native websocket listener callbackframeDispatchQueuedTimestamp- wall-clock timestamp just before endpoint dispatch was queuedframeDispatchStartedTimestamp- wall-clock timestamp when endpoint dispatch started
- Enclosing interface:
WebsocketEndpoint
public static record WebsocketEndpoint.ReceiveTiming(long frameReceivedTimestamp, long frameDispatchQueuedTimestamp, long frameDispatchStartedTimestamp)
extends Record
Low-level receive timing captured before dispatching to the Fluxzero endpoint.
-
Constructor Summary
ConstructorsConstructorDescriptionReceiveTiming(long frameReceivedTimestamp, long frameDispatchQueuedTimestamp, long frameDispatchStartedTimestamp) Creates an instance of aReceiveTimingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of theframeDispatchQueuedTimestamprecord component.longReturns the value of theframeDispatchStartedTimestamprecord component.longReturns the value of theframeReceivedTimestamprecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReceiveTiming
public ReceiveTiming(long frameReceivedTimestamp, long frameDispatchQueuedTimestamp, long frameDispatchStartedTimestamp) Creates an instance of aReceiveTimingrecord class.- Parameters:
frameReceivedTimestamp- the value for theframeReceivedTimestamprecord componentframeDispatchQueuedTimestamp- the value for theframeDispatchQueuedTimestamprecord componentframeDispatchStartedTimestamp- the value for theframeDispatchStartedTimestamprecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
frameReceivedTimestamp
public long frameReceivedTimestamp()Returns the value of theframeReceivedTimestamprecord component.- Returns:
- the value of the
frameReceivedTimestamprecord component
-
frameDispatchQueuedTimestamp
public long frameDispatchQueuedTimestamp()Returns the value of theframeDispatchQueuedTimestamprecord component.- Returns:
- the value of the
frameDispatchQueuedTimestamprecord component
-
frameDispatchStartedTimestamp
public long frameDispatchStartedTimestamp()Returns the value of theframeDispatchStartedTimestamprecord component.- Returns:
- the value of the
frameDispatchStartedTimestamprecord component
-