Record Class ReplicationManager.ReplicationData
java.lang.Object
java.lang.Record
com.loomcache.server.replication.ReplicationManager.ReplicationData
- Enclosing class:
ReplicationManager
-
Constructor Summary
ConstructorsConstructorDescriptionReplicationData(String senderId, String operation, String mapName, byte[] keyBytes, byte[] valueBytes, int correlationId) Creates an instance of aReplicationDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecorrelationIdrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.byte[]keyBytes()Returns the value of thekeyBytesrecord component.mapName()Returns the value of themapNamerecord component.Returns the value of theoperationrecord component.senderId()Returns the value of thesenderIdrecord component.final StringtoString()Returns a string representation of this record class.byte[]Returns the value of thevalueBytesrecord component.
-
Constructor Details
-
ReplicationData
public ReplicationData(String senderId, String operation, String mapName, byte[] keyBytes, byte[] valueBytes, int correlationId) Creates an instance of aReplicationDatarecord class.- Parameters:
senderId- the value for thesenderIdrecord componentoperation- the value for theoperationrecord componentmapName- the value for themapNamerecord componentkeyBytes- the value for thekeyBytesrecord componentvalueBytes- the value for thevalueBytesrecord componentcorrelationId- the value for thecorrelationIdrecord component
-
-
Method Details
-
keyBytes
public byte[] keyBytes()Returns the value of thekeyBytesrecord component.- Returns:
- the value of the
keyBytesrecord component
-
valueBytes
public byte[] valueBytes()Returns the value of thevalueBytesrecord component.- Returns:
- the value of the
valueBytesrecord component
-
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. -
hashCode
-
toString
-
senderId
Returns the value of thesenderIdrecord component.- Returns:
- the value of the
senderIdrecord component
-
operation
Returns the value of theoperationrecord component.- Returns:
- the value of the
operationrecord component
-
mapName
Returns the value of themapNamerecord component.- Returns:
- the value of the
mapNamerecord component
-
correlationId
public int correlationId()Returns the value of thecorrelationIdrecord component.- Returns:
- the value of the
correlationIdrecord component
-