public abstract class DynamoDBStateActor<T>
extends io.vlingo.actors.Actor
implements io.vlingo.symbio.store.state.StateStore.DispatcherControl
| Modifier and Type | Field and Description |
|---|---|
protected CreateTableInterest |
createTableInterest |
static java.lang.String |
DISPATCHABLE_TABLE_NAME |
protected io.vlingo.symbio.store.state.StateStore.Dispatcher |
dispatcher |
protected com.amazonaws.services.dynamodbv2.AmazonDynamoDBAsync |
dynamodb |
protected io.vlingo.symbio.State<T> |
nullState |
protected RecordAdapter<T> |
recordAdapter |
| Constructor and Description |
|---|
DynamoDBStateActor(io.vlingo.symbio.store.state.StateStore.Dispatcher dispatcher,
com.amazonaws.services.dynamodbv2.AmazonDynamoDBAsync dynamodb,
CreateTableInterest createTableInterest,
RecordAdapter<T> recordAdapter,
io.vlingo.symbio.State<T> nullState) |
| Modifier and Type | Method and Description |
|---|---|
void |
confirmDispatched(java.lang.String dispatchId,
io.vlingo.symbio.store.state.StateStore.ConfirmDispatchedResultInterest interest) |
void |
dispatchUnconfirmed() |
protected abstract java.lang.Void |
doDispatch(io.vlingo.symbio.store.state.StateStore.Dispatchable<T> dispatchable) |
protected void |
doGenericRead(java.lang.String id,
java.lang.Class<?> type,
io.vlingo.symbio.store.state.StateStore.ReadResultInterest<T> interest,
java.lang.Object object) |
protected void |
doGenericWrite(io.vlingo.symbio.State<T> state,
io.vlingo.symbio.store.state.StateStore.WriteResultInterest<T> interest,
java.lang.Object object) |
protected com.amazonaws.services.dynamodbv2.model.GetItemRequest |
readRequestFor(java.lang.String id,
java.lang.Class<?> type) |
protected java.lang.String |
tableFor(java.lang.Class<?> type) |
protected java.util.Map<java.lang.String,java.util.List<com.amazonaws.services.dynamodbv2.model.WriteRequest>> |
writeRequestFor(io.vlingo.symbio.State<T> state,
io.vlingo.symbio.store.state.StateStore.Dispatchable<T> dispatchable) |
address, afterRestart, afterStop, beforeRestart, beforeResume, beforeStart, childActorFor, completes, completesEventually, deadLetters, definition, disperseStowedMessages, equals, hashCode, isDispersing, isStopped, isStowing, logger, parentAs, scheduler, secure, selfAs, selfAsOutcomeInterest, stage, stageNamed, start, stop, stowMessages, toString, viewTestStatepublic static final java.lang.String DISPATCHABLE_TABLE_NAME
protected final io.vlingo.symbio.store.state.StateStore.Dispatcher dispatcher
protected final com.amazonaws.services.dynamodbv2.AmazonDynamoDBAsync dynamodb
protected final CreateTableInterest createTableInterest
protected final RecordAdapter<T> recordAdapter
protected final io.vlingo.symbio.State<T> nullState
public DynamoDBStateActor(io.vlingo.symbio.store.state.StateStore.Dispatcher dispatcher,
com.amazonaws.services.dynamodbv2.AmazonDynamoDBAsync dynamodb,
CreateTableInterest createTableInterest,
RecordAdapter<T> recordAdapter,
io.vlingo.symbio.State<T> nullState)
public void confirmDispatched(java.lang.String dispatchId,
io.vlingo.symbio.store.state.StateStore.ConfirmDispatchedResultInterest interest)
confirmDispatched in interface io.vlingo.symbio.store.state.StateStore.DispatcherControlpublic void dispatchUnconfirmed()
dispatchUnconfirmed in interface io.vlingo.symbio.store.state.StateStore.DispatcherControlprotected abstract java.lang.Void doDispatch(io.vlingo.symbio.store.state.StateStore.Dispatchable<T> dispatchable)
protected final java.lang.String tableFor(java.lang.Class<?> type)
protected final void doGenericRead(java.lang.String id,
java.lang.Class<?> type,
io.vlingo.symbio.store.state.StateStore.ReadResultInterest<T> interest,
java.lang.Object object)
protected final void doGenericWrite(io.vlingo.symbio.State<T> state, io.vlingo.symbio.store.state.StateStore.WriteResultInterest<T> interest, java.lang.Object object)
protected com.amazonaws.services.dynamodbv2.model.GetItemRequest readRequestFor(java.lang.String id,
java.lang.Class<?> type)
Copyright © 2018. All rights reserved.