public class DynamoDBStateActor<RS extends io.vlingo.symbio.State<?>>
extends io.vlingo.actors.Actor
implements io.vlingo.symbio.store.state.StateStore
| Modifier and Type | Field and Description |
|---|---|
static String |
DISPATCHABLE_TABLE_NAME |
| Constructor and Description |
|---|
DynamoDBStateActor(io.vlingo.symbio.store.dispatch.Dispatcher<io.vlingo.symbio.store.dispatch.Dispatchable<io.vlingo.symbio.Entry<?>,RS>> dispatcher,
com.amazonaws.services.dynamodbv2.AmazonDynamoDBAsync dynamodb,
CreateTableInterest createTableInterest,
RecordAdapter<RS> recordAdapter)
Constructs a
DynamoDBStateActor with the arguments. |
DynamoDBStateActor(io.vlingo.symbio.store.dispatch.Dispatcher<io.vlingo.symbio.store.dispatch.Dispatchable<io.vlingo.symbio.Entry<?>,RS>> dispatcher,
io.vlingo.symbio.store.dispatch.DispatcherControl dispatcherControl,
com.amazonaws.services.dynamodbv2.AmazonDynamoDBAsync dynamodb,
CreateTableInterest createTableInterest,
RecordAdapter<RS> recordAdapter)
NOTE: this constructor is intended only for supporting testing with mocks.
|
| Modifier and Type | Method and Description |
|---|---|
<ET extends io.vlingo.symbio.Entry<?>> |
entryReader(String name) |
void |
read(String id,
Class<?> type,
io.vlingo.symbio.store.state.StateStore.ReadResultInterest interest,
Object object) |
protected String |
tableFor(Class<?> type) |
<S,C> void |
write(String id,
S state,
int stateVersion,
List<io.vlingo.symbio.Source<C>> sources,
io.vlingo.symbio.Metadata metadata,
io.vlingo.symbio.store.state.StateStore.WriteResultInterest interest,
Object object) |
address, afterRestart, afterStop, beforeRestart, beforeResume, beforeStart, childActorFor, childActorFor, completableFuture, completes, completesEventually, conclude, deadLetters, definition, disperseStowedMessages, equals, future, hashCode, isStopped, logger, parentAs, scheduler, secure, selfAs, stage, stageNamed, start, stop, stowMessages, toString, viewTestState, viewTestStateInitializationpublic static final String DISPATCHABLE_TABLE_NAME
public DynamoDBStateActor(io.vlingo.symbio.store.dispatch.Dispatcher<io.vlingo.symbio.store.dispatch.Dispatchable<io.vlingo.symbio.Entry<?>,RS>> dispatcher, io.vlingo.symbio.store.dispatch.DispatcherControl dispatcherControl, com.amazonaws.services.dynamodbv2.AmazonDynamoDBAsync dynamodb, CreateTableInterest createTableInterest, RecordAdapter<RS> recordAdapter)
dispatcher - the Dispatcher that will handle dispatching state changesdispatcherControl - the DispatcherControl this will handle resipatching and dispatch confirmationdynamodb - the AmazonDynamoDBAsync that provide async access to Amazon DynamoDBcreateTableInterest - the CreateTableInterest that is responsible for table creationrecordAdapter - the RecordAdapter that is responsible for un/marshalling statepublic DynamoDBStateActor(io.vlingo.symbio.store.dispatch.Dispatcher<io.vlingo.symbio.store.dispatch.Dispatchable<io.vlingo.symbio.Entry<?>,RS>> dispatcher, com.amazonaws.services.dynamodbv2.AmazonDynamoDBAsync dynamodb, CreateTableInterest createTableInterest, RecordAdapter<RS> recordAdapter)
DynamoDBStateActor with the arguments.dispatcher - the Dispatcher that will handle dispatching state changesdynamodb - the AmazonDynamoDBAsync that provide async access to Amazon DynamoDBcreateTableInterest - the CreateTableInterest that is responsible for table creationrecordAdapter - the RecordAdapter that is responsible for un/marshalling statepublic void read(String id, Class<?> type, io.vlingo.symbio.store.state.StateStore.ReadResultInterest interest, Object object)
read in interface io.vlingo.symbio.store.state.StateStoreReaderpublic <S,C> void write(String id, S state, int stateVersion, List<io.vlingo.symbio.Source<C>> sources, io.vlingo.symbio.Metadata metadata, io.vlingo.symbio.store.state.StateStore.WriteResultInterest interest, Object object)
write in interface io.vlingo.symbio.store.state.StateStoreWriterpublic <ET extends io.vlingo.symbio.Entry<?>> io.vlingo.common.Completes<io.vlingo.symbio.store.state.StateStoreEntryReader<ET>> entryReader(String name)
entryReader in interface io.vlingo.symbio.store.state.StateStoreCopyright © 2019. All rights reserved.