public final class CassandraPersistentActorRepository extends Object implements PersistentActorRepository
| Constructor and Description |
|---|
CassandraPersistentActorRepository(String clusterName,
ThreadBoundExecutor asyncUpdateExecutor) |
CassandraPersistentActorRepository(String clusterName,
ThreadBoundExecutor asyncUpdateExecutor,
long readExecutionThresholdMillis) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(ShardKey shard,
String actorId) |
void |
delete(ShardKey shard,
String actorId) |
PersistentActor<ShardKey> |
get(ShardKey shard,
String actorId) |
void |
setColumnFamilyTemplate(me.prettyprint.cassandra.service.template.ColumnFamilyTemplate<me.prettyprint.hector.api.beans.Composite,String> columnFamilyTemplate) |
void |
setDeserializer(Deserializer deserializer) |
void |
setSerializer(Serializer serializer) |
void |
update(ShardKey shard,
PersistentActor persistentActor) |
void |
updateAsync(ShardKey shard,
PersistentActor persistentActor,
InternalMessage message,
MessageHandlerEventListener messageHandlerEventListener) |
public CassandraPersistentActorRepository(String clusterName, ThreadBoundExecutor asyncUpdateExecutor)
public CassandraPersistentActorRepository(String clusterName, ThreadBoundExecutor asyncUpdateExecutor, long readExecutionThresholdMillis)
public boolean contains(ShardKey shard, String actorId)
contains in interface PersistentActorRepositorypublic void update(ShardKey shard, PersistentActor persistentActor) throws IOException
update in interface PersistentActorRepositoryIOExceptionpublic void updateAsync(ShardKey shard, PersistentActor persistentActor, InternalMessage message, MessageHandlerEventListener messageHandlerEventListener) throws IOException
updateAsync in interface PersistentActorRepositoryIOExceptionpublic void delete(ShardKey shard, String actorId)
delete in interface PersistentActorRepositorypublic PersistentActor<ShardKey> get(ShardKey shard, String actorId) throws IOException
get in interface PersistentActorRepositoryIOExceptionpublic void setColumnFamilyTemplate(me.prettyprint.cassandra.service.template.ColumnFamilyTemplate<me.prettyprint.hector.api.beans.Composite,String> columnFamilyTemplate)
public void setDeserializer(Deserializer deserializer)
public void setSerializer(Serializer serializer)
Copyright © 2021. All rights reserved.