public class MemoryStsMachine extends Object implements StsMachine
| Constructor and Description |
|---|
MemoryStsMachine(StsStorageManager manager,
Client.WithManagement client)
Constructs the STS machine.
|
| Modifier and Type | Method and Description |
|---|---|
StsClientState |
getCurrentState()
Returns the current state in the enum that the
state machine is operating in.
|
StsStorageManager |
getStorageManager()
Gets the persistence/storage manager.
|
void |
setCurrentState(StsClientState newState)
Changes the state of the FSM, triggering any state-specific work.
|
void |
setStsPolicy(StsPolicy policy)
Provides a key->value map of options and list of flags, making up the STS policy.
|
public MemoryStsMachine(@Nonnull StsStorageManager manager, Client.WithManagement client)
manager - STS managerclient - client@Nonnull public StsClientState getCurrentState()
StsMachinegetCurrentState in interface StsMachinepublic void setCurrentState(@Nonnull StsClientState newState)
StsMachinesetCurrentState in interface StsMachinenewState - a valid (non-UNKNOWN, non-null) state@Nonnull public StsStorageManager getStorageManager()
StsMachinegetStorageManager in interface StsMachinepublic void setStsPolicy(@Nonnull StsPolicy policy)
StsMachineIt is expected the policy is valid at this stage.
setStsPolicy in interface StsMachinepolicy - the valid STS policyCopyright © 2013–2019 Kitteh. All rights reserved.