Class JDBCStateStoreActor
- java.lang.Object
-
- io.vlingo.actors.Actor
-
- io.vlingo.symbio.store.state.jdbc.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>
voidwrite(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
-
-
-
-
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 interfaceio.vlingo.actors.Stoppable
- Overrides:
stop
in classio.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 interfaceio.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 interfaceio.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 interfaceio.vlingo.symbio.store.state.StateStoreWriter
-
-