org.apache.camel.component.kestrel
Class KestrelConsumer
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultConsumer
org.apache.camel.component.kestrel.KestrelConsumer
- All Implemented Interfaces:
- Consumer, Service, ShutdownableService, ShutdownAware
public class KestrelConsumer
- extends DefaultConsumer
- implements ShutdownAware
A Camel consumer that polls a kestrel queue.
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend |
KestrelConsumer
public KestrelConsumer(KestrelEndpoint endpoint,
Processor processor,
net.spy.memcached.MemcachedClient memcachedClient)
doStart
protected void doStart()
throws Exception
- Overrides:
doStart in class DefaultConsumer
- Throws:
Exception
doStop
protected void doStop()
throws Exception
- Overrides:
doStop in class DefaultConsumer
- Throws:
Exception
deferShutdown
public boolean deferShutdown(ShutdownRunningTask shutdownRunningTask)
- Specified by:
deferShutdown in interface ShutdownAware
getPendingExchangesSize
public int getPendingExchangesSize()
- Specified by:
getPendingExchangesSize in interface ShutdownAware
prepareShutdown
public void prepareShutdown()
- Specified by:
prepareShutdown in interface ShutdownAware
Apache CAMEL