Class DisruptorReference
java.lang.Object
org.apache.camel.component.disruptor.DisruptorReference
Holder for Disruptor references.
This is used to keep track of the usages of the Disruptors, so we know when a Disruptor is no longer in use, and can
safely be discarded.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddEndpoint(DisruptorEndpoint disruptorEndpoint) intintgetName()intlongbooleanvoidpublish(org.apache.camel.Exchange exchange) voidvoidremoveEndpoint(DisruptorEndpoint disruptorEndpoint) toString()voidtryPublish(org.apache.camel.Exchange exchange)
-
Method Details
-
hasNullReference
public boolean hasNullReference() -
tryPublish
public void tryPublish(org.apache.camel.Exchange exchange) throws DisruptorNotStartedException, com.lmax.disruptor.InsufficientCapacityException - Throws:
DisruptorNotStartedExceptioncom.lmax.disruptor.InsufficientCapacityException
-
publish
- Throws:
DisruptorNotStartedException
-
reconfigure
- Throws:
Exception
-
getName
-
getRemainingCapacity
- Throws:
DisruptorNotStartedException
-
getWaitStrategy
-
getBufferSize
public int getBufferSize() -
getPendingExchangeCount
public int getPendingExchangeCount() -
addEndpoint
-
removeEndpoint
-
getEndpointCount
public int getEndpointCount() -
toString
-