Class DisruptorConsumer
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.component.disruptor.DisruptorConsumer
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.Consumer,org.apache.camel.EndpointAware,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.spi.ShutdownAware,org.apache.camel.spi.ShutdownPrepared,org.apache.camel.StatefulService,org.apache.camel.Suspendable,org.apache.camel.SuspendableService
public class DisruptorConsumer
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.Consumer, org.apache.camel.Suspendable, org.apache.camel.spi.ShutdownAware
A Consumer for the Disruptor component.
-
Field Summary
Fields inherited from class org.apache.camel.support.service.BaseService
BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING -
Constructor Summary
ConstructorsConstructorDescriptionDisruptorConsumer(DisruptorEndpoint endpoint, org.apache.camel.Processor processor) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.camel.ExchangecreateExchange(boolean autoRelease) booleandeferShutdown(org.apache.camel.ShutdownRunningTask shutdownRunningTask) protected voiddoResume()protected voiddoStart()protected voiddoStop()protected voidorg.apache.camel.spi.ExceptionHandlerintorg.apache.camel.AsyncProcessorvoidprepareShutdown(boolean suspendOnly, boolean forced) voidreleaseExchange(org.apache.camel.Exchange exchange, boolean autoRelease) voidsetExceptionHandler(org.apache.camel.spi.ExceptionHandler exceptionHandler) toString()Methods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doInit, doLifecycleChange, doShutdown, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.camel.Consumer
defaultConsumerCallbackMethods inherited from interface org.apache.camel.Service
build, close, init, start, stopMethods inherited from interface org.apache.camel.ShutdownableService
shutdownMethods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspendingMethods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Constructor Details
-
DisruptorConsumer
-
-
Method Details
-
getProcessor
public org.apache.camel.AsyncProcessor getProcessor()- Specified by:
getProcessorin interfaceorg.apache.camel.Consumer
-
getExceptionHandler
public org.apache.camel.spi.ExceptionHandler getExceptionHandler() -
setExceptionHandler
public void setExceptionHandler(org.apache.camel.spi.ExceptionHandler exceptionHandler) -
getEndpoint
- Specified by:
getEndpointin interfaceorg.apache.camel.EndpointAware
-
doStart
- Overrides:
doStartin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
doStop
- Overrides:
doStopin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
doSuspend
- Overrides:
doSuspendin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
doResume
- Overrides:
doResumein classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
deferShutdown
public boolean deferShutdown(org.apache.camel.ShutdownRunningTask shutdownRunningTask) - Specified by:
deferShutdownin interfaceorg.apache.camel.spi.ShutdownAware
-
prepareShutdown
public void prepareShutdown(boolean suspendOnly, boolean forced) - Specified by:
prepareShutdownin interfaceorg.apache.camel.spi.ShutdownPrepared
-
getPendingExchangesSize
public int getPendingExchangesSize()- Specified by:
getPendingExchangesSizein interfaceorg.apache.camel.spi.ShutdownAware
-
toString
-
createExchange
public org.apache.camel.Exchange createExchange(boolean autoRelease) - Specified by:
createExchangein interfaceorg.apache.camel.Consumer
-
releaseExchange
public void releaseExchange(org.apache.camel.Exchange exchange, boolean autoRelease) - Specified by:
releaseExchangein interfaceorg.apache.camel.Consumer
-