public interface StateContext
StateContext
objects are used to store the current State
and
any application specific attributes for a specific client of a
StateMachine
. Since StateMachine
s are singletons and shared
by all clients using the StateMachine
this is where client specific
data needs to be stored.Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(Object key)
Returns the value of the attribute with the specified key or
null if not found. |
State |
getCurrentState() |
void |
setAttribute(Object key,
Object value)
Sets the value of the attribute with the specified key.
|
void |
setCurrentState(State state)
Sets the current
State . |
State getCurrentState()
State
. This is only meant for internal use.void setCurrentState(State state)
State
. This is only meant for internal use.
Don't call it directly!state
- the new current State
.Object getAttribute(Object key)
null
if not found.key
- the key.null
.Copyright © 2004–2021 Apache MINA Project. All rights reserved.