Record Class PersistentActorUpdateEvent
java.lang.Object
java.lang.Record
org.elasticsoftware.elasticactors.cassandra.common.state.PersistentActorUpdateEvent
- All Implemented Interfaces:
ThreadBoundEvent<Integer>
public record PersistentActorUpdateEvent(String[] rowKey, ShardKey shardKey, String persistentActorId, @Nullable ByteBuffer persistentActorBytes, @Nullable InternalMessage message, @Nullable MessageHandlerEventListener eventListener)
extends Record
implements ThreadBoundEvent<Integer>
- Author:
- Joost van de Wijgerd
-
Constructor Summary
ConstructorsConstructorDescriptionPersistentActorUpdateEvent(String[] rowKey, ShardKey shardKey, String persistentActorId, ByteBuffer persistentActorBytes, InternalMessage message, MessageHandlerEventListener eventListener) Creates an instance of aPersistentActorUpdateEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theeventListenerrecord component.getKey()final inthashCode()Returns a hash code value for this object.booleanmessage()Returns the value of themessagerecord component.Returns the value of thepersistentActorBytesrecord component.Returns the value of thepersistentActorIdrecord component.String[]rowKey()Returns the value of therowKeyrecord component.shardKey()Returns the value of theshardKeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PersistentActorUpdateEvent
public PersistentActorUpdateEvent(String[] rowKey, ShardKey shardKey, String persistentActorId, @Nullable ByteBuffer persistentActorBytes, @Nullable InternalMessage message, @Nullable MessageHandlerEventListener eventListener) Creates an instance of aPersistentActorUpdateEventrecord class.- Parameters:
rowKey- the value for therowKeyrecord componentshardKey- the value for theshardKeyrecord componentpersistentActorId- the value for thepersistentActorIdrecord componentpersistentActorBytes- the value for thepersistentActorBytesrecord componentmessage- the value for themessagerecord componenteventListener- the value for theeventListenerrecord component
-
-
Method Details
-
getKey
- Specified by:
getKeyin interfaceThreadBoundEvent<Integer>
-
hasPersistentActorBytes
public boolean hasPersistentActorBytes() -
persistentActorBytes
Returns the value of thepersistentActorBytesrecord component.- Returns:
- the value of the
persistentActorBytesrecord component
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 withObjects::equals(Object,Object). -
rowKey
Returns the value of therowKeyrecord component.- Returns:
- the value of the
rowKeyrecord component
-
shardKey
Returns the value of theshardKeyrecord component.- Returns:
- the value of the
shardKeyrecord component
-
persistentActorId
Returns the value of thepersistentActorIdrecord component.- Returns:
- the value of the
persistentActorIdrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
eventListener
Returns the value of theeventListenerrecord component.- Returns:
- the value of the
eventListenerrecord component
-