Class DynamoDBDispatcherControlActor<RS extends io.vlingo.symbio.State<?>>
- java.lang.Object
-
- io.vlingo.actors.Actor
-
- io.vlingo.symbio.store.state.dynamodb.DynamoDBDispatcherControlActor<RS>
-
- All Implemented Interfaces:
io.vlingo.actors.Startable
,io.vlingo.actors.Stoppable
,io.vlingo.actors.testkit.TestStateView
,io.vlingo.common.Scheduled<java.lang.Object>
,io.vlingo.symbio.store.state.StateStore.DispatcherControl
public class DynamoDBDispatcherControlActor<RS extends io.vlingo.symbio.State<?>> extends io.vlingo.actors.Actor implements io.vlingo.symbio.store.state.StateStore.DispatcherControl, io.vlingo.common.Scheduled<java.lang.Object>
DynamoDBDispatcherControlActor is responsible for ensuring that dispatching ofdispatchables
occurs and is confirmed.
-
-
Field Summary
Fields Modifier and Type Field Description static long
DEFAULT_REDISPATCH_DELAY
-
Constructor Summary
Constructors Constructor Description DynamoDBDispatcherControlActor(io.vlingo.symbio.store.state.StateStore.Dispatcher dispatcher, com.amazonaws.services.dynamodbv2.AmazonDynamoDBAsync dynamodb, RecordAdapter<RS> recordAdapter, long checkConfirmationExpirationInterval, long confirmationExpiration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
confirmDispatched(java.lang.String dispatchId, io.vlingo.symbio.store.state.StateStore.ConfirmDispatchedResultInterest interest)
void
dispatchUnconfirmed()
void
intervalSignal(io.vlingo.common.Scheduled<java.lang.Object> scheduled, java.lang.Object data)
void
stop()
-
Methods inherited from class io.vlingo.actors.Actor
address, afterRestart, afterStop, beforeRestart, beforeResume, beforeStart, childActorFor, childActorFor, completes, completesEventually, conclude, deadLetters, definition, disperseStowedMessages, equals, hashCode, isStopped, logger, parentAs, scheduler, secure, selfAs, stage, stageNamed, start, stowMessages, toString, viewTestState, viewTestStateInitialization
-
-
-
-
Field Detail
-
DEFAULT_REDISPATCH_DELAY
public static final long DEFAULT_REDISPATCH_DELAY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DynamoDBDispatcherControlActor
public DynamoDBDispatcherControlActor(io.vlingo.symbio.store.state.StateStore.Dispatcher dispatcher, com.amazonaws.services.dynamodbv2.AmazonDynamoDBAsync dynamodb, RecordAdapter<RS> recordAdapter, long checkConfirmationExpirationInterval, long confirmationExpiration)
-
-
Method Detail
-
intervalSignal
public void intervalSignal(io.vlingo.common.Scheduled<java.lang.Object> scheduled, java.lang.Object data)
- Specified by:
intervalSignal
in interfaceio.vlingo.common.Scheduled<RS extends io.vlingo.symbio.State<?>>
-
confirmDispatched
public void confirmDispatched(java.lang.String dispatchId, io.vlingo.symbio.store.state.StateStore.ConfirmDispatchedResultInterest interest)
- Specified by:
confirmDispatched
in interfaceio.vlingo.symbio.store.state.StateStore.DispatcherControl
-
dispatchUnconfirmed
public void dispatchUnconfirmed()
- Specified by:
dispatchUnconfirmed
in interfaceio.vlingo.symbio.store.state.StateStore.DispatcherControl
-
stop
public void stop()
- Specified by:
stop
in interfaceio.vlingo.symbio.store.state.StateStore.DispatcherControl
- Specified by:
stop
in interfaceio.vlingo.actors.Stoppable
- Overrides:
stop
in classio.vlingo.actors.Actor
-
-