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 Details

    • PersistentActorUpdateEvent

      public PersistentActorUpdateEvent(String[] rowKey, ShardKey shardKey, String persistentActorId, @Nullable ByteBuffer persistentActorBytes, @Nullable InternalMessage message, @Nullable MessageHandlerEventListener eventListener)
      Creates an instance of a PersistentActorUpdateEvent record class.
      Parameters:
      rowKey - the value for the rowKey record component
      shardKey - the value for the shardKey record component
      persistentActorId - the value for the persistentActorId record component
      persistentActorBytes - the value for the persistentActorBytes record component
      message - the value for the message record component
      eventListener - the value for the eventListener record component
  • Method Details

    • getKey

      public Integer getKey()
      Specified by:
      getKey in interface ThreadBoundEvent<Integer>
    • hasPersistentActorBytes

      public boolean hasPersistentActorBytes()
    • persistentActorBytes

      @Nullable public ByteBuffer persistentActorBytes()
      Returns the value of the persistentActorBytes record component.
      Returns:
      the value of the persistentActorBytes record component
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • rowKey

      public String[] rowKey()
      Returns the value of the rowKey record component.
      Returns:
      the value of the rowKey record component
    • shardKey

      public ShardKey shardKey()
      Returns the value of the shardKey record component.
      Returns:
      the value of the shardKey record component
    • persistentActorId

      public String persistentActorId()
      Returns the value of the persistentActorId record component.
      Returns:
      the value of the persistentActorId record component
    • message

      @Nullable public InternalMessage message()
      Returns the value of the message record component.
      Returns:
      the value of the message record component
    • eventListener

      @Nullable public MessageHandlerEventListener eventListener()
      Returns the value of the eventListener record component.
      Returns:
      the value of the eventListener record component