Class CassandraPersistentActorRepository

java.lang.Object
org.elasticsoftware.elasticactors.cassandra.state.CassandraPersistentActorRepository
All Implemented Interfaces:
org.elasticsoftware.elasticactors.state.PersistentActorRepository

public final class CassandraPersistentActorRepository extends Object implements org.elasticsoftware.elasticactors.state.PersistentActorRepository
Author:
Joost van de Wijgerd
  • Constructor Summary

    Constructors
    Constructor
    Description
    CassandraPersistentActorRepository(String clusterName, org.elasticsoftware.elasticactors.util.concurrent.ThreadBoundExecutor asyncUpdateExecutor)
     
    CassandraPersistentActorRepository(String clusterName, org.elasticsoftware.elasticactors.util.concurrent.ThreadBoundExecutor asyncUpdateExecutor, long readExecutionThresholdMillis)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    contains(org.elasticsoftware.elasticactors.ShardKey shard, String actorId)
     
    void
    delete(org.elasticsoftware.elasticactors.ShardKey shard, String actorId)
     
    org.elasticsoftware.elasticactors.state.PersistentActor<org.elasticsoftware.elasticactors.ShardKey>
    get(org.elasticsoftware.elasticactors.ShardKey shard, String actorId)
     
    void
    setColumnFamilyTemplate(me.prettyprint.cassandra.service.template.ColumnFamilyTemplate<me.prettyprint.hector.api.beans.Composite,String> columnFamilyTemplate)
     
    void
    setDeserializer(org.elasticsoftware.elasticactors.serialization.Deserializer deserializer)
     
    void
    setSerializer(org.elasticsoftware.elasticactors.serialization.Serializer serializer)
     
    void
    update(org.elasticsoftware.elasticactors.ShardKey shard, org.elasticsoftware.elasticactors.state.PersistentActor persistentActor)
     
    void
    updateAsync(org.elasticsoftware.elasticactors.ShardKey shard, org.elasticsoftware.elasticactors.state.PersistentActor persistentActor, org.elasticsoftware.elasticactors.messaging.InternalMessage message, org.elasticsoftware.elasticactors.messaging.MessageHandlerEventListener messageHandlerEventListener)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CassandraPersistentActorRepository

      public CassandraPersistentActorRepository(String clusterName, org.elasticsoftware.elasticactors.util.concurrent.ThreadBoundExecutor asyncUpdateExecutor)
    • CassandraPersistentActorRepository

      public CassandraPersistentActorRepository(String clusterName, org.elasticsoftware.elasticactors.util.concurrent.ThreadBoundExecutor asyncUpdateExecutor, long readExecutionThresholdMillis)
  • Method Details

    • contains

      public boolean contains(org.elasticsoftware.elasticactors.ShardKey shard, String actorId)
      Specified by:
      contains in interface org.elasticsoftware.elasticactors.state.PersistentActorRepository
    • update

      public void update(org.elasticsoftware.elasticactors.ShardKey shard, org.elasticsoftware.elasticactors.state.PersistentActor persistentActor) throws IOException
      Specified by:
      update in interface org.elasticsoftware.elasticactors.state.PersistentActorRepository
      Throws:
      IOException
    • updateAsync

      public void updateAsync(org.elasticsoftware.elasticactors.ShardKey shard, org.elasticsoftware.elasticactors.state.PersistentActor persistentActor, org.elasticsoftware.elasticactors.messaging.InternalMessage message, org.elasticsoftware.elasticactors.messaging.MessageHandlerEventListener messageHandlerEventListener) throws IOException
      Specified by:
      updateAsync in interface org.elasticsoftware.elasticactors.state.PersistentActorRepository
      Throws:
      IOException
    • delete

      public void delete(org.elasticsoftware.elasticactors.ShardKey shard, String actorId)
      Specified by:
      delete in interface org.elasticsoftware.elasticactors.state.PersistentActorRepository
    • get

      public org.elasticsoftware.elasticactors.state.PersistentActor<org.elasticsoftware.elasticactors.ShardKey> get(org.elasticsoftware.elasticactors.ShardKey shard, String actorId) throws IOException
      Specified by:
      get in interface org.elasticsoftware.elasticactors.state.PersistentActorRepository
      Throws:
      IOException
    • setColumnFamilyTemplate

      public void setColumnFamilyTemplate(me.prettyprint.cassandra.service.template.ColumnFamilyTemplate<me.prettyprint.hector.api.beans.Composite,String> columnFamilyTemplate)
    • setDeserializer

      public void setDeserializer(org.elasticsoftware.elasticactors.serialization.Deserializer deserializer)
    • setSerializer

      public void setSerializer(org.elasticsoftware.elasticactors.serialization.Serializer serializer)