Class DynamoDBDispatcherControlActor<RS extends io.vlingo.symbio.State<?>>

  • 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 of dispatchables occurs and is confirmed.
    • 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
      • 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

      • 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 interface io.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 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