Package org.atmosphere.cache
Record Class CacheMessage
java.lang.Object
java.lang.Record
org.atmosphere.cache.CacheMessage
- All Implemented Interfaces:
Serializable
public record CacheMessage(String id, long createTime, Object message, String uuid)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCacheMessage(String id, long createTime, Object message, String uuid) Creates an instance of aCacheMessagerecord class.CacheMessage(String id, Object message, String uuid) -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecreateTimerecord component.final booleanIndicates whether some other object is "equal to" this one.longgetId()final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.message()Returns the value of themessagerecord component.toString()Returns a string representation of this record class.uuid()Returns the value of theuuidrecord component.
-
Constructor Details
-
CacheMessage
-
CacheMessage
Creates an instance of aCacheMessagerecord class.- Parameters:
id- the value for theidrecord componentcreateTime- the value for thecreateTimerecord componentmessage- the value for themessagerecord componentuuid- the value for theuuidrecord component
-
-
Method Details
-
getMessage
-
getId
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
getCreateTime
public long getCreateTime() -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
createTime
public long createTime()Returns the value of thecreateTimerecord component.- Returns:
- the value of the
createTimerecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-