org.apache.synapse.mediators
Class MediatorWorker

java.lang.Object
  extended by org.apache.synapse.mediators.MediatorWorker
All Implemented Interfaces:
Runnable

public class MediatorWorker
extends Object
implements Runnable

This class will be used as the executer for the injectAsync method for the sequence mediation


Constructor Summary
MediatorWorker(Mediator seq, MessageContext synCtx)
          Constructor of the MediatorWorker which sets the sequence and the message context
MediatorWorker(MessageContext synCtx)
          Constructor od the MediatorWorker which sets the provided message context and the main sequence as the sequence for mediation
 
Method Summary
 void run()
          Execution method of the thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MediatorWorker

public MediatorWorker(Mediator seq,
                      MessageContext synCtx)
Constructor of the MediatorWorker which sets the sequence and the message context

Parameters:
seq - - Sequence Mediator to be set
synCtx - - Synapse MessageContext to be set

MediatorWorker

public MediatorWorker(MessageContext synCtx)
Constructor od the MediatorWorker which sets the provided message context and the main sequence as the sequence for mediation

Parameters:
synCtx - - Synapse MessageContext to be set
Method Detail

run

public void run()
Execution method of the thread. This will just call the mediation of the specified Synapse MessageContext using the specified Sequence Mediator

Specified by:
run in interface Runnable


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.