org.apache.camel.component.routebox.direct
Class RouteboxDirectProducer

java.lang.Object
  extended by org.apache.camel.support.ServiceSupport
      extended by org.apache.camel.component.routebox.RouteboxServiceSupport
          extended by 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
 
Constructor Summary
RouteboxDirectProducer(RouteboxDirectEndpoint endpoint)
           
 
Method Summary
 org.apache.camel.Exchange createExchange()
           
 org.apache.camel.Exchange createExchange(org.apache.camel.Exchange exchange)
           
 org.apache.camel.Exchange createExchange(org.apache.camel.ExchangePattern pattern)
           
protected  void doStart()
           
protected  void doStop()
           
 org.apache.camel.Endpoint getEndpoint()
           
 boolean isSingleton()
           
 void process(org.apache.camel.Exchange exchange)
           
 boolean process(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback)
           
 String toString()
           
 
Methods inherited from class org.apache.camel.component.routebox.RouteboxServiceSupport
doStartInnerContext, doStopInnerContext, getExceptionHandler, getExecutor, getRouteboxEndpoint, isStartedInnerContext, setExceptionHandler, setExecutor, setRouteboxEndpoint, setStartedInnerContext
 
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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Field Detail

producer

protected org.apache.camel.ProducerTemplate producer
Constructor Detail

RouteboxDirectProducer

public RouteboxDirectProducer(RouteboxDirectEndpoint endpoint)
Method Detail

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