org.apache.camel.component.routebox.direct
Class RouteboxDirectProducer
java.lang.Object
org.apache.camel.support.ServiceSupport
org.apache.camel.component.routebox.RouteboxServiceSupport
org.apache.camel.component.routebox.direct.RouteboxDirectProducer
- All Implemented Interfaces:
- org.apache.camel.AsyncProcessor, org.apache.camel.IsSingleton, org.apache.camel.Processor, org.apache.camel.Producer, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.StatefulService, org.apache.camel.SuspendableService
public class RouteboxDirectProducer
- extends RouteboxServiceSupport
- implements org.apache.camel.Producer, org.apache.camel.AsyncProcessor
Field Summary |
protected org.apache.camel.ProducerTemplate |
producer
|
Fields inherited from class org.apache.camel.support.ServiceSupport |
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending |
Methods inherited from class org.apache.camel.support.ServiceSupport |
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, shutdown, start, stop, suspend |
Methods inherited from interface org.apache.camel.Service |
start, stop |
producer
protected org.apache.camel.ProducerTemplate producer
RouteboxDirectProducer
public RouteboxDirectProducer(RouteboxDirectEndpoint endpoint)
process
public void process(org.apache.camel.Exchange exchange)
throws Exception
- Specified by:
process
in interface org.apache.camel.Processor
- Throws:
Exception
process
public boolean process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback)
- Specified by:
process
in interface org.apache.camel.AsyncProcessor
doStart
protected void doStart()
throws Exception
- Specified by:
doStart
in class org.apache.camel.support.ServiceSupport
- Throws:
Exception
doStop
protected void doStop()
throws Exception
- Specified by:
doStop
in class org.apache.camel.support.ServiceSupport
- Throws:
Exception
getEndpoint
public org.apache.camel.Endpoint getEndpoint()
- Specified by:
getEndpoint
in interface org.apache.camel.Producer
createExchange
public org.apache.camel.Exchange createExchange()
- Specified by:
createExchange
in interface org.apache.camel.Producer
createExchange
public org.apache.camel.Exchange createExchange(org.apache.camel.ExchangePattern pattern)
- Specified by:
createExchange
in interface org.apache.camel.Producer
createExchange
public org.apache.camel.Exchange createExchange(org.apache.camel.Exchange exchange)
- Specified by:
createExchange
in interface org.apache.camel.Producer
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interface org.apache.camel.IsSingleton
toString
public String toString()
- Overrides:
toString
in class Object
Apache CAMEL