Package org.apache.synapse
Interface ContinuationState
-
- All Known Implementing Classes:
AbstractContinuationState,ReliantContinuationState,SeqContinuationState
public interface ContinuationStateImplementations of this interface holds the runtime state information of important checkpoints of the mediation flow. This information is mainly used to mediate the response message when service is invoked using the Call Mediator. Instances of ContinuationState are stored in the ContinuationState Stack which resides in the MessageContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddLeafChild(ContinuationState leafChild)Add a Leaf child to this ContinuationStateContinuationStategetChildContState()Get the child ContinuationStateContinuationStategetLeafChild()Get the Leaf Child of this ContinuationState.intgetPosition()Get the position of the mediator in the current flow.booleanhasChild()Check whether child ContinuationState existsvoidremoveLeafChild()Remove the Leaf child form this ContinuationState.voidsetChildContState(ContinuationState childContState)Set the child ContinuationState.voidsetPosition(int position)Set the position of the mediator in the flow which is currently being processed.
-
-
-
Method Detail
-
getChildContState
ContinuationState getChildContState()
Get the child ContinuationState- Returns:
- child ContinuationState
-
setChildContState
void setChildContState(ContinuationState childContState)
Set the child ContinuationState.- Parameters:
childContState- ContinuationState to be added as the child
-
getPosition
int getPosition()
Get the position of the mediator in the current flow.- Returns:
- position
-
setPosition
void setPosition(int position)
Set the position of the mediator in the flow which is currently being processed.- Parameters:
position- position of the mediator which is currently being processed in the flow.
-
hasChild
boolean hasChild()
Check whether child ContinuationState exists- Returns:
- whether child ContinuationState exists
-
getLeafChild
ContinuationState getLeafChild()
Get the Leaf Child of this ContinuationState.- Returns:
- Leaf child of the ContinuationState
-
addLeafChild
void addLeafChild(ContinuationState leafChild)
Add a Leaf child to this ContinuationState- Parameters:
leafChild- ContinuationState which can be added as a Leaf child for this ContinuationState
-
removeLeafChild
void removeLeafChild()
Remove the Leaf child form this ContinuationState.
-
-