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, doFail, doInit, doLifecycleChange, doResume, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public 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
Exception
public boolean process(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback)
process
in interface org.apache.camel.AsyncProcessor
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.AsyncProcessorSupport
Exception
protected void doStop() throws Exception
doStop
in class org.apache.camel.support.AsyncProcessorSupport
Exception
protected void doShutdown() throws Exception
doShutdown
in class org.apache.camel.support.service.BaseService
Exception
public 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