Class JDBCDispatcherControlActor
- java.lang.Object
-
- io.vlingo.actors.Actor
-
- io.vlingo.symbio.store.state.jdbc.JDBCDispatcherControlActor
-
- 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 JDBCDispatcherControlActor extends io.vlingo.actors.Actor implements io.vlingo.symbio.store.state.StateStore.DispatcherControl, io.vlingo.common.Scheduled<java.lang.Object>
JDBCRedispatchControlActor is responsible for requesting re-dispatch of the unconfirmed dispatchables of a JDBCStateStoreActor on a configurable, periodic basis. This allows the work of re-dispatching to be shifted to a different thread than the one responsible for reading and writing in the state store.
-
-
Field Summary
Fields Modifier and Type Field Description static long
DEFAULT_REDISPATCH_DELAY
-
Constructor Summary
Constructors Constructor Description JDBCDispatcherControlActor(io.vlingo.symbio.store.state.StateStore.Dispatcher dispatcher, io.vlingo.symbio.store.state.StateStore.StorageDelegate delegate, 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
-
-
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<java.lang.Object>
-
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
-
-