org.apache.servicemix.camel.nmr
Class ServiceMixConsumer
java.lang.Object
org.apache.camel.support.ServiceSupport
org.apache.camel.impl.DefaultConsumer
org.apache.servicemix.camel.nmr.ServiceMixConsumer
- All Implemented Interfaces:
- org.apache.camel.Consumer, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.Synchronization, org.apache.camel.StatefulService, org.apache.camel.SuspendableService, org.apache.servicemix.nmr.api.Endpoint
public class ServiceMixConsumer
- extends org.apache.camel.impl.DefaultConsumer
- implements org.apache.servicemix.nmr.api.Endpoint, org.apache.camel.spi.Synchronization
A Consumer that receives NMR Exchanges and invokes the Camel route
| Fields inherited from class org.apache.camel.impl.DefaultConsumer |
log |
| Fields inherited from class org.apache.camel.support.ServiceSupport |
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending |
| Fields inherited from interface org.apache.servicemix.nmr.api.Endpoint |
CHANNEL_SYNC_DELIVERY, ENDPOINT_NAME, INTERFACE_NAME, NAME, RUN_AS_SUBJECT, SERVICE_NAME, UNTARGETABLE, VERSION, WSDL_URL |
|
Method Summary |
protected void |
doStart()
|
protected void |
doStop()
|
ServiceMixEndpoint |
getEndpoint()
|
void |
onComplete(org.apache.camel.Exchange exchange)
|
void |
onFailure(org.apache.camel.Exchange exchange)
|
void |
process(org.apache.servicemix.nmr.api.Exchange exchange)
Process an NMR Exchange by creating and sending a Camel Exchange
through the defined route |
void |
setChannel(org.apache.servicemix.nmr.api.Channel channel)
|
| Methods inherited from class org.apache.camel.impl.DefaultConsumer |
getAsyncProcessor, getExceptionHandler, getProcessor, handleException, handleException, setExceptionHandler, toString |
| 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 |
ServiceMixConsumer
public ServiceMixConsumer(ServiceMixEndpoint endpoint,
org.apache.camel.Processor processor)
getEndpoint
public ServiceMixEndpoint getEndpoint()
- Specified by:
getEndpoint in interface org.apache.camel.Consumer- Overrides:
getEndpoint in class org.apache.camel.impl.DefaultConsumer
doStart
protected void doStart()
throws java.lang.Exception
- Overrides:
doStart in class org.apache.camel.impl.DefaultConsumer
- Throws:
java.lang.Exception
doStop
protected void doStop()
throws java.lang.Exception
- Overrides:
doStop in class org.apache.camel.impl.DefaultConsumer
- Throws:
java.lang.Exception
setChannel
public void setChannel(org.apache.servicemix.nmr.api.Channel channel)
- Specified by:
setChannel in interface org.apache.servicemix.nmr.api.Endpoint
process
public void process(org.apache.servicemix.nmr.api.Exchange exchange)
- Process an NMR
Exchange by creating and sending a Camel Exchange
through the defined route
- Specified by:
process in interface org.apache.servicemix.nmr.api.Endpoint
onComplete
public void onComplete(org.apache.camel.Exchange exchange)
- Specified by:
onComplete in interface org.apache.camel.spi.Synchronization
onFailure
public void onFailure(org.apache.camel.Exchange exchange)
- Specified by:
onFailure in interface org.apache.camel.spi.Synchronization
Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.