Record Class RealtimeHub.Frame
java.lang.Object
java.lang.Record
com.kingsrook.qqq.middleware.javalin.realtime.RealtimeHub.Frame
- Enclosing class:
RealtimeHub
public static record RealtimeHub.Frame(long sequence, String id, String channel, String event, Map<String,Serializable> data, Instant at)
extends Record
Wire frame, with a null event representing a comment ping.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionat()Returns the value of theatrecord component.channel()Returns the value of thechannelrecord component.data()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.event()Returns the value of theeventrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.longsequence()Returns the value of thesequencerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Frame
public Frame(long sequence, String id, String channel, String event, Map<String, Serializable> data, Instant at) Creates an instance of aFramerecord class.- Parameters:
sequence- the value for thesequencerecord componentid- the value for theidrecord componentchannel- the value for thechannelrecord componentevent- the value for theeventrecord componentdata- the value for thedatarecord componentat- the value for theatrecord 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. -
sequence
public long sequence()Returns the value of thesequencerecord component.- Returns:
- the value of the
sequencerecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
channel
Returns the value of thechannelrecord component.- Returns:
- the value of the
channelrecord component
-
event
Returns the value of theeventrecord component.- Returns:
- the value of the
eventrecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
at
Returns the value of theatrecord component.- Returns:
- the value of the
atrecord component
-