public interface ActorContext
Each time an actor chain is invoked, a new ActorContext and a new ModelMap are passed into the actor chain. Thus each chain has its own context and its own modelmap. If you need to pass an attribute/a variable from the parent chain to the child/nested chain, you need to pass them explicitly.
ActorContextImpl
,
DefaultActorContextFactory
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAttribute(java.lang.String pAttributeName)
This method gets the attribute named
pAttributeName from the attribute map. |
void |
putAttribute(java.lang.String pAttributeName,
java.lang.Object pAttributeValue)
This method sets an attribute with the key
pAttributeName
and its value is pAttributeValue |
java.lang.Object |
removeAttribute(java.lang.String pAttributeName)
Removes the attribute with key
pAttributeName from the attribute map. |
static final java.lang.String CLASS_VERSION
java.lang.Object getAttribute(java.lang.String pAttributeName)
pAttributeName
from the attribute map.
pAttributeName
- The name of the attribute that needs to be returnedvoid putAttribute(java.lang.String pAttributeName, java.lang.Object pAttributeValue)
pAttributeName
and its value is pAttributeValue
pAttributeName
- The name of the attribute that needs to be setpAttributeValue
- The attribute valuejava.lang.Object removeAttribute(java.lang.String pAttributeName)
pAttributeName
from the attribute map.
Returns the removed object, or null if nothing was removed.pAttributeName
-