Record Class TwoPhaseCommitInterceptor.MapEntry
java.lang.Object
java.lang.Record
org.apache.catalina.tribes.group.interceptors.TwoPhaseCommitInterceptor.MapEntry
- Enclosing class:
- TwoPhaseCommitInterceptor
public static record TwoPhaseCommitInterceptor.MapEntry(ChannelMessage msg, UniqueId id, long timestamp)
extends Record
- 
Constructor SummaryConstructorsConstructorDescriptionMapEntry(ChannelMessage msg, UniqueId id, long timestamp) Creates an instance of aMapEntryrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanexpired(long now, long expiration) final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.msg()Returns the value of themsgrecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
- 
Constructor Details- 
MapEntryCreates an instance of aMapEntryrecord class.- Parameters:
- msg- the value for the- msgrecord component
- id- the value for the- idrecord component
- timestamp- the value for the- timestamprecord component
 
 
- 
- 
Method Details- 
expiredpublic boolean expired(long now, long expiration) 
- 
toString
- 
hashCode
- 
equalsIndicates 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.
- 
msgReturns the value of themsgrecord component.- Returns:
- the value of the msgrecord component
 
- 
idReturns the value of theidrecord component.- Returns:
- the value of the idrecord component
 
- 
timestamppublic long timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the timestamprecord component
 
 
-