Class JDBCStateStoreActor

  • All Implemented Interfaces:
    io.vlingo.actors.Startable, io.vlingo.actors.Stoppable, io.vlingo.actors.testkit.TestStateView, io.vlingo.symbio.store.state.StateStore, io.vlingo.symbio.store.state.StateStoreReader, io.vlingo.symbio.store.state.StateStoreWriter

    public class JDBCStateStoreActor
    extends io.vlingo.actors.Actor
    implements io.vlingo.symbio.store.state.StateStore
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface io.vlingo.symbio.store.state.StateStore

        io.vlingo.symbio.store.state.StateStore.ConfirmDispatchedResultInterest, io.vlingo.symbio.store.state.StateStore.Dispatchable<R extends io.vlingo.symbio.State<?>>, io.vlingo.symbio.store.state.StateStore.Dispatcher, io.vlingo.symbio.store.state.StateStore.DispatcherControl, io.vlingo.symbio.store.state.StateStore.ReadResultInterest, io.vlingo.symbio.store.state.StateStore.StorageDelegate, io.vlingo.symbio.store.state.StateStore.WriteResultInterest
    • Constructor Summary

      Constructors 
      Constructor Description
      JDBCStateStoreActor​(io.vlingo.symbio.store.state.StateStore.Dispatcher dispatcher, io.vlingo.symbio.store.state.StateStore.StorageDelegate delegate)  
      JDBCStateStoreActor​(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
      <ET extends io.vlingo.symbio.Entry<?>>
      io.vlingo.common.Completes<io.vlingo.symbio.store.state.StateStoreEntryReader<ET>>
      entryReader​(java.lang.String name)  
      void read​(java.lang.String id, java.lang.Class<?> type, io.vlingo.symbio.store.state.StateStore.ReadResultInterest interest, java.lang.Object object)  
      void stop()  
      <S,​C>
      void
      write​(java.lang.String id, S state, int stateVersion, java.util.List<io.vlingo.symbio.Source<C>> sources, io.vlingo.symbio.Metadata metadata, io.vlingo.symbio.store.state.StateStore.WriteResultInterest interest, java.lang.Object object)  
      • 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
      • Methods inherited from interface io.vlingo.symbio.store.state.StateStoreReader

        read
      • Methods inherited from interface io.vlingo.symbio.store.state.StateStoreWriter

        write, write, write, write, write, write, write
    • Constructor Detail

      • JDBCStateStoreActor

        public JDBCStateStoreActor​(io.vlingo.symbio.store.state.StateStore.Dispatcher dispatcher,
                                   io.vlingo.symbio.store.state.StateStore.StorageDelegate delegate)
      • JDBCStateStoreActor

        public JDBCStateStoreActor​(io.vlingo.symbio.store.state.StateStore.Dispatcher dispatcher,
                                   io.vlingo.symbio.store.state.StateStore.StorageDelegate delegate,
                                   long checkConfirmationExpirationInterval,
                                   long confirmationExpiration)
    • Method Detail

      • stop

        public void stop()
        Specified by:
        stop in interface io.vlingo.actors.Stoppable
        Overrides:
        stop in class io.vlingo.actors.Actor
      • entryReader

        public <ET extends io.vlingo.symbio.Entry<?>> io.vlingo.common.Completes<io.vlingo.symbio.store.state.StateStoreEntryReader<ET>> entryReader​(java.lang.String name)
        Specified by:
        entryReader in interface io.vlingo.symbio.store.state.StateStore
      • read

        public void read​(java.lang.String id,
                         java.lang.Class<?> type,
                         io.vlingo.symbio.store.state.StateStore.ReadResultInterest interest,
                         java.lang.Object object)
        Specified by:
        read in interface io.vlingo.symbio.store.state.StateStoreReader
      • write

        public <S,​C> void write​(java.lang.String id,
                                      S state,
                                      int stateVersion,
                                      java.util.List<io.vlingo.symbio.Source<C>> sources,
                                      io.vlingo.symbio.Metadata metadata,
                                      io.vlingo.symbio.store.state.StateStore.WriteResultInterest interest,
                                      java.lang.Object object)
        Specified by:
        write in interface io.vlingo.symbio.store.state.StateStoreWriter