Package org.apache.synapse
Interface ContinuationState
-
- All Known Implementing Classes:
AbstractContinuationState
,ReliantContinuationState
,SeqContinuationState
public interface ContinuationState
Implementations 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 void
addLeafChild(ContinuationState leafChild)
Add a Leaf child to this ContinuationStateContinuationState
getChildContState()
Get the child ContinuationStateContinuationState
getLeafChild()
Get the Leaf Child of this ContinuationState.int
getPosition()
Get the position of the mediator in the current flow.boolean
hasChild()
Check whether child ContinuationState existsvoid
removeLeafChild()
Remove the Leaf child form this ContinuationState.void
setChildContState(ContinuationState childContState)
Set the child ContinuationState.void
setPosition(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.
-
-