Record Class WanPublisher.WanBatch
java.lang.Object
java.lang.Record
com.loomcache.server.wan.WanPublisher.WanBatch
- Enclosing class:
WanPublisher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecompressedrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theeventCountrecord component.final inthashCode()Returns a hash code value for this object.byte @NonNull []payload()Returns the value of thepayloadrecord component.longReturns the value of therequiredAckSequencerecord component.@NonNull StringReturns the value of thesourceClusterIdrecord component.@NonNull StringReturns the value of thetargetClusterIdrecord component.@NonNull StringReturns the value of thetargetEndpointrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WanBatch
public WanBatch(@NonNull String sourceClusterId, @NonNull String targetClusterId, @NonNull String targetEndpoint, byte @NonNull [] payload, int eventCount, boolean compressed, long requiredAckSequence) Creates an instance of aWanBatchrecord class.- Parameters:
sourceClusterId- the value for thesourceClusterIdrecord componenttargetClusterId- the value for thetargetClusterIdrecord componenttargetEndpoint- the value for thetargetEndpointrecord componentpayload- the value for thepayloadrecord componenteventCount- the value for theeventCountrecord componentcompressed- the value for thecompressedrecord componentrequiredAckSequence- the value for therequiredAckSequencerecord component
-
-
Method Details
-
payload
public byte @NonNull [] payload()Returns the value of thepayloadrecord component.- Returns:
- the value of the
payloadrecord 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. -
sourceClusterId
Returns the value of thesourceClusterIdrecord component.- Returns:
- the value of the
sourceClusterIdrecord component
-
targetClusterId
Returns the value of thetargetClusterIdrecord component.- Returns:
- the value of the
targetClusterIdrecord component
-
targetEndpoint
Returns the value of thetargetEndpointrecord component.- Returns:
- the value of the
targetEndpointrecord component
-
eventCount
public int eventCount()Returns the value of theeventCountrecord component.- Returns:
- the value of the
eventCountrecord component
-
compressed
public boolean compressed()Returns the value of thecompressedrecord component.- Returns:
- the value of the
compressedrecord component
-
requiredAckSequence
public long requiredAckSequence()Returns the value of therequiredAckSequencerecord component.- Returns:
- the value of the
requiredAckSequencerecord component
-