Class TransactionMediator
- java.lang.Object
-
- org.apache.synapse.mediators.AbstractMediator
-
- org.apache.synapse.mediators.transaction.TransactionMediator
-
- All Implemented Interfaces:
AspectConfigurable
,Mediator
,SynapseArtifact
public class TransactionMediator extends AbstractMediator
The Mediator for commit, rollback, suspend, resume jta transactions
-
-
Field Summary
Fields Modifier and Type Field Description static String
ACTION_COMMIT
static String
ACTION_FAULT_IF_NO_TX
static String
ACTION_NEW
static String
ACTION_ROLLBACK
static String
ACTION_USE_EXISTING_OR_NEW
-
Fields inherited from class org.apache.synapse.mediators.AbstractMediator
log, trace, traceState
-
-
Constructor Summary
Constructors Constructor Description TransactionMediator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAction()
boolean
isContentAware()
boolean
mediate(MessageContext synCtx)
Invokes the mediator passing the current message for mediation.void
setAction(String action)
-
Methods inherited from class org.apache.synapse.mediators.AbstractMediator
auditLog, auditWarn, configure, disableStatistics, disableTracing, divertMediationRoute, enableStatistics, enableTracing, getAspectConfiguration, getCommentsList, getDescription, getInputType, getLastSequenceFaultHandler, getLog, getMediatorName, getMediatorPosition, getOutputType, getRegisteredMediationFlowPoint, getShortDescription, getTraceState, getType, handleException, handleException, isBreakPoint, isContentAltering, isSkipEnabled, isStatisticsEnable, isTraceOn, isTraceOrDebugOn, isTracingEnabled, registerMediationFlowPoint, reportCloseStatistics, reportOpenStatistics, setBreakPoint, setCommentsList, setComponentStatisticsId, setDescription, setEffectiveTraceState, setMediatorPosition, setShortDescription, setSkipEnabled, setTraceState, shouldCaptureTracing, shouldTrace, shouldTrace, traceOrDebug, traceOrDebugWarn, unregisterMediationFlowPoint
-
-
-
-
Field Detail
-
ACTION_COMMIT
public static final String ACTION_COMMIT
- See Also:
- Constant Field Values
-
ACTION_ROLLBACK
public static final String ACTION_ROLLBACK
- See Also:
- Constant Field Values
-
ACTION_NEW
public static final String ACTION_NEW
- See Also:
- Constant Field Values
-
ACTION_USE_EXISTING_OR_NEW
public static final String ACTION_USE_EXISTING_OR_NEW
- See Also:
- Constant Field Values
-
ACTION_FAULT_IF_NO_TX
public static final String ACTION_FAULT_IF_NO_TX
- See Also:
- Constant Field Values
-
-
Method Detail
-
mediate
public boolean mediate(MessageContext synCtx)
Description copied from interface:Mediator
Invokes the mediator passing the current message for mediation. Each mediator performs its mediation action, and returns true if mediation should continue, or false if further mediation should be aborted.- Parameters:
synCtx
- the current message for mediation- Returns:
- true if further mediation should continue
-
setAction
public void setAction(String action)
-
getAction
public String getAction()
-
isContentAware
public boolean isContentAware()
- Specified by:
isContentAware
in interfaceMediator
- Overrides:
isContentAware
in classAbstractMediator
-
-