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()
StsMachine
getCurrentState
in interface StsMachine
public void setCurrentState(@Nonnull StsClientState newState)
StsMachine
setCurrentState
in interface StsMachine
newState
- a valid (non-UNKNOWN, non-null) state@Nonnull public StsStorageManager getStorageManager()
StsMachine
getStorageManager
in interface StsMachine
public void setStsPolicy(@Nonnull StsPolicy policy)
StsMachine
It is expected the policy is valid at this stage.
setStsPolicy
in interface StsMachine
policy
- the valid STS policyCopyright © 2013–2019 Kitteh. All rights reserved.