public class MemoryStsMachine extends Object implements StsMachine
Constructor and Description |
---|
MemoryStsMachine(@NonNull StsStorageManager manager,
Client.WithManagement client)
Constructs the STS machine.
|
Modifier and Type | Method and Description |
---|---|
@NonNull StsClientState |
getCurrentState()
Returns the current state in the enum that the
state machine is operating in.
|
@NonNull StsStorageManager |
getStorageManager()
Gets the persistence/storage manager.
|
void |
setCurrentState(@NonNull StsClientState newState)
Changes the state of the FSM, triggering any state-specific work.
|
void |
setStsPolicy(@NonNull 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
- clientpublic @NonNull 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) statepublic @NonNull 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–2021 Kitteh. All rights reserved.