@ManagedResource(description="Managed Disruptor Endpoint")
@UriEndpoint(scheme="disruptor,disruptor-vm",
title="Disruptor,Disruptor VM",
syntax="disruptor:name",
consumerClass=DisruptorConsumer.class,
label="endpoint")
public class DisruptorEndpoint
extends org.apache.camel.impl.DefaultEndpoint
implements org.apache.camel.MultipleConsumersSupport
| Modifier and Type | Field and Description |
|---|---|
static String |
DISRUPTOR_IGNORE_EXCHANGE |
| Constructor and Description |
|---|
DisruptorEndpoint(String endpointUri,
org.apache.camel.Component component,
DisruptorReference disruptorReference,
int concurrentConsumers,
boolean multipleConsumers,
boolean blockWhenFull) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer() |
protected void |
doShutdown() |
protected void |
doStart() |
protected void |
doStop() |
boolean |
equals(Object object) |
int |
getBufferSize() |
String |
getCamelId() |
String |
getCamelManagementName() |
DisruptorComponent |
getComponent() |
int |
getConcurrentConsumers() |
Set<DisruptorConsumer> |
getConsumers()
Returns the current active consumers on this endpoint
|
String |
getEndpointUri() |
String |
getName() |
long |
getPendingExchangeCount() |
Set<DisruptorProducer> |
getProducers()
Returns the current active producers on this endpoint
|
DisruptorProducerType |
getProducerType() |
long |
getRemainingCapacity() |
String |
getState() |
long |
getTimeout() |
org.apache.camel.WaitForTaskToComplete |
getWaitForTaskToComplete() |
DisruptorWaitStrategy |
getWaitStrategy() |
int |
hashCode() |
boolean |
isBlockWhenFull() |
boolean |
isMultipleConsumers() |
boolean |
isMultipleConsumersSupported() |
boolean |
isSingleton() |
void |
setBlockWhenFull(boolean blockWhenFull) |
void |
setProducerType(DisruptorProducerType producerType) |
void |
setTimeout(long timeout) |
void |
setWaitForTaskToComplete(org.apache.camel.WaitForTaskToComplete waitForTaskToComplete) |
void |
setWaitStrategy(DisruptorWaitStrategy waitStrategy) |
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, getCamelContext, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getExchangePattern, getId, getPollingConsumerQueueSize, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toStringdoResume, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic static final String DISRUPTOR_IGNORE_EXCHANGE
public DisruptorEndpoint(String endpointUri, org.apache.camel.Component component, DisruptorReference disruptorReference, int concurrentConsumers, boolean multipleConsumers, boolean blockWhenFull) throws Exception
Exception@ManagedAttribute(description="Camel ID") public String getCamelId()
@ManagedAttribute(description="Camel ManagementName") public String getCamelManagementName()
@ManagedAttribute(description="Endpoint Uri",
mask=true)
public String getEndpointUri()
getEndpointUri in interface org.apache.camel.EndpointgetEndpointUri in class org.apache.camel.impl.DefaultEndpoint@ManagedAttribute(description="Service State") public String getState()
@ManagedAttribute(description="Queue name") public String getName()
@ManagedAttribute(description="Buffer max capacity") public int getBufferSize()
@ManagedAttribute(description="Remaining capacity in ring buffer")
public long getRemainingCapacity()
throws DisruptorNotStartedException
DisruptorNotStartedException@ManagedAttribute(description="Amount of pending exchanges waiting for consumption in ring buffer")
public long getPendingExchangeCount()
throws DisruptorNotStartedException
DisruptorNotStartedException@ManagedAttribute(description="Number of concurrent consumers") public int getConcurrentConsumers()
public org.apache.camel.WaitForTaskToComplete getWaitForTaskToComplete()
public void setWaitForTaskToComplete(org.apache.camel.WaitForTaskToComplete waitForTaskToComplete)
@ManagedAttribute public long getTimeout()
public void setTimeout(long timeout)
@ManagedAttribute public boolean isMultipleConsumers()
public Set<DisruptorConsumer> getConsumers()
public Set<DisruptorProducer> getProducers()
@ManagedAttribute public boolean isMultipleConsumersSupported()
isMultipleConsumersSupported in interface org.apache.camel.MultipleConsumersSupport@ManagedAttribute public boolean isBlockWhenFull()
public void setBlockWhenFull(boolean blockWhenFull)
public DisruptorWaitStrategy getWaitStrategy()
public void setWaitStrategy(DisruptorWaitStrategy waitStrategy)
public DisruptorProducerType getProducerType()
public void setProducerType(DisruptorProducerType producerType)
public boolean isSingleton()
isSingleton in interface org.apache.camel.IsSingletonpublic org.apache.camel.Producer createProducer()
throws Exception
createProducer in interface org.apache.camel.EndpointExceptionpublic org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
createConsumer in interface org.apache.camel.EndpointExceptionprotected void doStart()
throws Exception
doStart in class org.apache.camel.impl.DefaultEndpointExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.impl.DefaultEndpointExceptionprotected void doShutdown()
throws Exception
doShutdown in class org.apache.camel.support.ServiceSupportExceptionpublic DisruptorComponent getComponent()
getComponent in class org.apache.camel.impl.DefaultEndpointpublic boolean equals(Object object)
equals in class org.apache.camel.impl.DefaultEndpointpublic int hashCode()
hashCode in class org.apache.camel.impl.DefaultEndpointApache Camel