public final class SubscribeMethodProcessor
extends org.apache.camel.support.AsyncProcessorSupport
implements org.apache.camel.Navigate<org.apache.camel.Processor>
Processor which is used for POJO @Consume where you can have multiple @Consume on the same endpoint/consumer
and via predicate's can filter and call different methods.| Constructor and Description |
|---|
SubscribeMethodProcessor(org.apache.camel.Endpoint endpoint) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMethod(Object pojo,
Method method,
org.apache.camel.Endpoint endpoint,
String predicate) |
protected void |
doShutdown() |
protected void |
doStart() |
protected void |
doStop() |
org.apache.camel.Endpoint |
getEndpoint() |
boolean |
hasNext() |
List<org.apache.camel.Processor> |
next() |
boolean |
process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback) |
String |
toString() |
build, doBuild, doInit, doResume, doSuspend, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic SubscribeMethodProcessor(org.apache.camel.Endpoint endpoint)
public org.apache.camel.Endpoint getEndpoint()
public void addMethod(Object pojo, Method method, org.apache.camel.Endpoint endpoint, String predicate) throws Exception
Exceptionpublic boolean process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback)
process in interface org.apache.camel.AsyncProcessorprotected void doStart()
throws Exception
doStart in class org.apache.camel.support.AsyncProcessorSupportExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.AsyncProcessorSupportExceptionprotected void doShutdown()
throws Exception
doShutdown in class org.apache.camel.support.service.ServiceSupportExceptionpublic List<org.apache.camel.Processor> next()
next in interface org.apache.camel.Navigate<org.apache.camel.Processor>public boolean hasNext()
hasNext in interface org.apache.camel.Navigate<org.apache.camel.Processor>Apache Camel