Class 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.
    • 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
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • DEFAULT_REDISPATCH_DELAY

        public static final long DEFAULT_REDISPATCH_DELAY
        See Also:
        Constant Field Values
    • Constructor Detail

      • JDBCDispatcherControlActor

        public JDBCDispatcherControlActor​(io.vlingo.symbio.store.state.StateStore.Dispatcher dispatcher,
                                          io.vlingo.symbio.store.state.StateStore.StorageDelegate delegate,
                                          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 interface io.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 interface io.vlingo.symbio.store.state.StateStore.DispatcherControl
      • dispatchUnconfirmed

        public void dispatchUnconfirmed()
        Specified by:
        dispatchUnconfirmed in interface io.vlingo.symbio.store.state.StateStore.DispatcherControl
      • stop

        public void stop()
        Specified by:
        stop in interface io.vlingo.symbio.store.state.StateStore.DispatcherControl
        Specified by:
        stop in interface io.vlingo.actors.Stoppable
        Overrides:
        stop in class io.vlingo.actors.Actor