Class CassandraPersistentActorRepository
- java.lang.Object
-
- org.elasticsoftware.elasticactors.cassandra2.state.CassandraPersistentActorRepository
-
- All Implemented Interfaces:
PersistentActorRepository
public final class CassandraPersistentActorRepository extends Object implements PersistentActorRepository
- Author:
- Joost van de Wijgerd
-
-
Constructor Summary
Constructors Constructor Description CassandraPersistentActorRepository(com.datastax.driver.core.Session cassandraSession, String clusterName, ThreadBoundExecutor asyncUpdateExecutor, Serializer serializer, Deserializer deserializer)CassandraPersistentActorRepository(com.datastax.driver.core.Session cassandraSession, String clusterName, ThreadBoundExecutor asyncUpdateExecutor, Serializer serializer, Deserializer deserializer, long readExecutionThresholdMillis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(ShardKey shard, String actorId)voiddelete(ShardKey shard, String actorId)PersistentActor<ShardKey>get(ShardKey shard, String actorId)voidupdate(ShardKey shard, PersistentActor persistentActor)voidupdateAsync(ShardKey shard, PersistentActor persistentActor, InternalMessage message, MessageHandlerEventListener messageHandlerEventListener)
-
-
-
Constructor Detail
-
CassandraPersistentActorRepository
public CassandraPersistentActorRepository(com.datastax.driver.core.Session cassandraSession, String clusterName, ThreadBoundExecutor asyncUpdateExecutor, Serializer serializer, Deserializer deserializer)
-
CassandraPersistentActorRepository
public CassandraPersistentActorRepository(com.datastax.driver.core.Session cassandraSession, String clusterName, ThreadBoundExecutor asyncUpdateExecutor, Serializer serializer, Deserializer deserializer, long readExecutionThresholdMillis)
-
-
Method Detail
-
contains
public boolean contains(ShardKey shard, String actorId)
- Specified by:
containsin interfacePersistentActorRepository
-
update
public void update(ShardKey shard, PersistentActor persistentActor) throws IOException
- Specified by:
updatein interfacePersistentActorRepository- Throws:
IOException
-
updateAsync
public void updateAsync(ShardKey shard, PersistentActor persistentActor, InternalMessage message, MessageHandlerEventListener messageHandlerEventListener) throws IOException
- Specified by:
updateAsyncin interfacePersistentActorRepository- Throws:
IOException
-
delete
public void delete(ShardKey shard, String actorId)
- Specified by:
deletein interfacePersistentActorRepository
-
get
public PersistentActor<ShardKey> get(ShardKey shard, String actorId) throws IOException
- Specified by:
getin interfacePersistentActorRepository- Throws:
IOException
-
-