Record Class MapPutTtlCodec.Payload
java.lang.Object
java.lang.Record
com.loomcache.common.protocol.MapPutTtlCodec.Payload
- Enclosing class:
MapPutTtlCodec
public static record MapPutTtlCodec.Payload(long ttlMillis, long expirationEpochMillis, byte[] value)
extends Record
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexpirationEpochMillisrecord component.booleanfinal inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.longReturns the value of thettlMillisrecord component.byte[]value()Returns the value of thevaluerecord component.
-
Constructor Details
-
Payload
public Payload(long ttlMillis, long expirationEpochMillis, byte[] value) Creates an instance of aPayloadrecord class.- Parameters:
ttlMillis- the value for thettlMillisrecord componentexpirationEpochMillis- the value for theexpirationEpochMillisrecord componentvalue- the value for thevaluerecord component
-
Payload
public Payload(long ttlMillis, byte[] value)
-
-
Method Details
-
hasDeterministicExpiration
public boolean hasDeterministicExpiration() -
value
public byte[] value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
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. -
ttlMillis
public long ttlMillis()Returns the value of thettlMillisrecord component.- Returns:
- the value of the
ttlMillisrecord component
-
expirationEpochMillis
public long expirationEpochMillis()Returns the value of theexpirationEpochMillisrecord component.- Returns:
- the value of the
expirationEpochMillisrecord component
-