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
ConstructorsConstructorDescriptionCassandraPersistentActorRepository(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 TypeMethodDescriptionbooleanvoidorg.elasticsoftware.elasticactors.state.PersistentActor<org.elasticsoftware.elasticactors.ShardKey>voidsetColumnFamilyTemplate(me.prettyprint.cassandra.service.template.ColumnFamilyTemplate<me.prettyprint.hector.api.beans.Composite, String> columnFamilyTemplate) voidsetDeserializer(org.elasticsoftware.elasticactors.serialization.Deserializer deserializer) voidsetSerializer(org.elasticsoftware.elasticactors.serialization.Serializer serializer) voidupdate(org.elasticsoftware.elasticactors.ShardKey shard, org.elasticsoftware.elasticactors.state.PersistentActor persistentActor) voidupdateAsync(org.elasticsoftware.elasticactors.ShardKey shard, org.elasticsoftware.elasticactors.state.PersistentActor persistentActor, org.elasticsoftware.elasticactors.messaging.InternalMessage message, org.elasticsoftware.elasticactors.messaging.MessageHandlerEventListener messageHandlerEventListener)
-
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
- Specified by:
containsin interfaceorg.elasticsoftware.elasticactors.state.PersistentActorRepository
-
update
public void update(org.elasticsoftware.elasticactors.ShardKey shard, org.elasticsoftware.elasticactors.state.PersistentActor persistentActor) throws IOException - Specified by:
updatein interfaceorg.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:
updateAsyncin interfaceorg.elasticsoftware.elasticactors.state.PersistentActorRepository- Throws:
IOException
-
delete
- Specified by:
deletein interfaceorg.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:
getin interfaceorg.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)
-