public interface Mediator extends SynapseArtifact
It is recommended to extend the abstract class
AbstractMediator
or the
AbstractListMediator
as appropriate instead of
directly implementing this interface
AbstractMediator
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMediatorName()
Returns name of the mediator class.
|
int |
getMediatorPosition()
Get the position of the mediator in sequence flow.
|
java.lang.String |
getShortDescription()
Retrieves the short description of the mediator
|
int |
getTraceState()
This is used to check whether the tracing should be enabled on the current mediator or not
|
java.lang.String |
getType()
This is used for debugging purposes and exposes the type of the current
mediator for logging and debugging purposes
|
boolean |
isContentAltering()
This is used to indicate whether message payload get modified during mediation
|
boolean |
isContentAware() |
boolean |
mediate(MessageContext synCtx)
Invokes the mediator passing the current message for mediation.
|
void |
reportCloseStatistics(MessageContext synCtx,
java.lang.Integer currentIndex)
Report Close Statistic Event for the Mediator
|
java.lang.Integer |
reportOpenStatistics(MessageContext synCtx,
boolean isContentAltering)
Report Open Statistic Event for the Mediator
|
void |
setComponentStatisticsId(ArtifactHolder holder) |
void |
setMediatorPosition(int position)
Set the position of the mediator in the sequence
|
void |
setShortDescription(java.lang.String shortDescription)
Set the short description of the mediator
|
void |
setTraceState(int traceState)
This is used to set the value of tracing enable variable
|
getDescription, setDescription
boolean mediate(MessageContext synCtx)
synCtx
- the current message for mediationjava.lang.String getType()
int getTraceState()
void setTraceState(int traceState)
traceState
- Set whether the tracing is enabled or notboolean isContentAware()
boolean isContentAltering()
int getMediatorPosition()
void setMediatorPosition(int position)
position
- positionvoid setShortDescription(java.lang.String shortDescription)
shortDescription
- to be set to the artifactjava.lang.String getShortDescription()
java.lang.String getMediatorName()
java.lang.Integer reportOpenStatistics(MessageContext synCtx, boolean isContentAltering)
void reportCloseStatistics(MessageContext synCtx, java.lang.Integer currentIndex)
void setComponentStatisticsId(ArtifactHolder holder)
Copyright © 2005-2020 Apache Software Foundation. All Rights Reserved.