Class DisruptorVmComponent
- java.lang.Object
-
- org.apache.camel.support.service.BaseService
-
- org.apache.camel.support.service.ServiceSupport
-
- org.apache.camel.support.DefaultComponent
-
- org.apache.camel.component.disruptor.DisruptorComponent
-
- org.apache.camel.component.disruptor.vm.DisruptorVmComponent
-
- All Implemented Interfaces:
AutoCloseable
,org.apache.camel.CamelContextAware
,org.apache.camel.Component
,org.apache.camel.Service
,org.apache.camel.ShutdownableService
,org.apache.camel.StatefulService
,org.apache.camel.SuspendableService
@Component("disruptor-vm") public class DisruptorVmComponent extends DisruptorComponent
An implementation of the VM components for asynchronous SEDA exchanges on a LMAX Disruptor within the classloader tree containing the camel-disruptor.jar. i.e. to handle communicating across CamelContext instances and possibly across web application contexts, providing that camel-disruptor.jar is on the system classpath.
-
-
Field Summary
Fields Modifier and Type Field Description protected static Map<String,DisruptorReference>
DISRUPTORS
-
Fields inherited from class org.apache.camel.component.disruptor.DisruptorComponent
DEFAULT_BUFFER_SIZE, MAX_CONCURRENT_CONSUMERS
-
-
Constructor Summary
Constructors Constructor Description DisruptorVmComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doStart()
protected void
doStop()
Map<String,DisruptorReference>
getDisruptors()
-
Methods inherited from class org.apache.camel.component.disruptor.DisruptorComponent
createEndpoint, getBufferSize, getDefaultConcurrentConsumers, getDefaultProducerType, getDefaultWaitStrategy, getDisruptorKey, isDefaultBlockWhenFull, isDefaultMultipleConsumers, onShutdownEndpoint, setBufferSize, setDefaultBlockWhenFull, setDefaultConcurrentConsumers, setDefaultMultipleConsumers, setDefaultProducerType, setDefaultWaitStrategy
-
Methods inherited from class org.apache.camel.support.DefaultComponent
afterConfiguration, createEndpoint, createEndpoint, doBuild, doInit, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getComponentPropertyConfigurer, getEndpointPropertyConfigurer, getExtension, getSupportedExtensions, ifStartsWithReturnRemainder, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, registerExtension, registerExtension, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, resolveRawParameterValues, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setLazyStartProducer, setProperties, setProperties, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURI
-
Methods inherited from class org.apache.camel.support.service.BaseService
build, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
DISRUPTORS
protected static final Map<String,DisruptorReference> DISRUPTORS
-
-
Method Detail
-
getDisruptors
public Map<String,DisruptorReference> getDisruptors()
- Overrides:
getDisruptors
in classDisruptorComponent
-
doStart
protected void doStart() throws Exception
- Overrides:
doStart
in classorg.apache.camel.support.DefaultComponent
- Throws:
Exception
-
doStop
protected void doStop() throws Exception
- Overrides:
doStop
in classDisruptorComponent
- Throws:
Exception
-
-