Record Class WanPublisher.WanAck
java.lang.Object
java.lang.Record
com.loomcache.server.wan.WanPublisher.WanAck
- Enclosing class:
WanPublisher
- Since:
- 2.0
-
Constructor Summary
ConstructorsConstructorDescriptionWanAck(boolean acknowledged, long sequence) Creates an instance of aWanAckrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theacknowledgedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longsequence()Returns the value of thesequencerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WanAck
public WanAck(boolean acknowledged, long sequence) Creates an instance of aWanAckrecord class.- Parameters:
acknowledged- the value for theacknowledgedrecord componentsequence- the value for thesequencerecord 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. -
acknowledged
public boolean acknowledged()Returns the value of theacknowledgedrecord component.- Returns:
- the value of the
acknowledgedrecord component
-
sequence
public long sequence()Returns the value of thesequencerecord component.- Returns:
- the value of the
sequencerecord component
-