A B C D E F G H I L M N O P R S T U W Y

A

AbstractMultithreadedClaimStrategy - Class in com.lmax.disruptor
 
AbstractMultithreadedClaimStrategy(int) - Constructor for class com.lmax.disruptor.AbstractMultithreadedClaimStrategy
 
add(Sequence) - Method in class com.lmax.disruptor.SequenceGroup
Add a Sequence into this aggregate.
addAndGet(long) - Method in class com.lmax.disruptor.Sequence
 
addObservation(long) - Method in class com.lmax.disruptor.collections.Histogram
Add an observation to the histogram and increment the counter for the interval it matches.
addObservations(Histogram) - Method in class com.lmax.disruptor.collections.Histogram
Add observations from another Histogram into this one.
after(EventHandler<T>...) - Method in class com.lmax.disruptor.dsl.Disruptor
Create a group of event handlers to be used as a dependency.
after(EventProcessor...) - Method in class com.lmax.disruptor.dsl.Disruptor
Create a group of event processors to be used as a dependency.
AggregateEventHandler<T> - Class in com.lmax.disruptor
An aggregate collection of EventHandlers that get called in sequence for each event.
AggregateEventHandler(EventHandler<T>...) - Constructor for class com.lmax.disruptor.AggregateEventHandler
Construct an aggregate collection of EventHandlers to be called in sequence.
alert() - Method in interface com.lmax.disruptor.SequenceBarrier
Alert the EventProcessors of a status change and stay in this status until cleared.
AlertException - Exception in com.lmax.disruptor
Used to alert EventProcessors waiting at a SequenceBarrier of status changes.
and(EventHandler<T>...) - Method in class com.lmax.disruptor.dsl.EventHandlerGroup
Create a new event handler group that combines the handlers in this group with handlers.
and(EventProcessor...) - Method in class com.lmax.disruptor.dsl.EventHandlerGroup
Create a new event handler group that combines the handlers in this group with processors.
asSequenceBarrier() - Method in class com.lmax.disruptor.dsl.EventHandlerGroup
Create a dependency barrier for the processors in this group.

B

BatchDescriptor - Class in com.lmax.disruptor
Used to record the batch of sequences claimed via a Sequencer.
BatchEventProcessor<T> - Class in com.lmax.disruptor
Convenience class for handling the batching semantics of consuming entries from a RingBuffer and delegating the available events to a EventHandler.
BatchEventProcessor(RingBuffer<T>, SequenceBarrier, EventHandler<T>) - Constructor for class com.lmax.disruptor.BatchEventProcessor
Construct a EventProcessor that will automatically track the progress by updating its sequence when the EventHandler.onEvent(Object, long, boolean) method returns.
BlockingWaitStrategy - Class in com.lmax.disruptor
Blocking strategy that uses a lock and condition variable for EventProcessors waiting on a barrier.
BlockingWaitStrategy() - Constructor for class com.lmax.disruptor.BlockingWaitStrategy
 
BusySpinWaitStrategy - Class in com.lmax.disruptor
Busy Spin strategy that uses a busy spin loop for EventProcessors waiting on a barrier.
BusySpinWaitStrategy() - Constructor for class com.lmax.disruptor.BusySpinWaitStrategy
 

C

ceilingNextPowerOfTwo(int) - Static method in class com.lmax.disruptor.util.Util
Calculate the next power of 2, greater than or equal to x.
checkAlert() - Method in interface com.lmax.disruptor.SequenceBarrier
Check if an alert has been raised and throw an AlertException if it has.
checkAndIncrement(int, int, Sequence[]) - Method in class com.lmax.disruptor.AbstractMultithreadedClaimStrategy
 
checkAndIncrement(int, int, Sequence[]) - Method in interface com.lmax.disruptor.ClaimStrategy
Atomically checks the available capacity of the ring buffer and claims the next sequence.
checkAndIncrement(int, int, Sequence[]) - Method in class com.lmax.disruptor.SingleThreadedClaimStrategy
 
claim(long) - Method in class com.lmax.disruptor.Sequencer
Claim a specific sequence when only one publisher is involved.
ClaimStrategy - Interface in com.lmax.disruptor
Strategy contract for claiming the sequence of events in the Sequencer by event publishers.
clear() - Method in class com.lmax.disruptor.collections.Histogram
Clear the list of interval counters.
clearAlert() - Method in interface com.lmax.disruptor.SequenceBarrier
Clear the current alert status.
com.lmax.disruptor - package com.lmax.disruptor
The Disruptor is a concurrent programming framework for exchanging and coordinating work as a continuous series of events.
com.lmax.disruptor.collections - package com.lmax.disruptor.collections
 
com.lmax.disruptor.dsl - package com.lmax.disruptor.dsl
 
com.lmax.disruptor.util - package com.lmax.disruptor.util
 
compareAndSet(long, long) - Method in class com.lmax.disruptor.Sequence
 

D

Disruptor<T> - Class in com.lmax.disruptor.dsl
A DSL-style API for setting up the disruptor pattern around a ring buffer.
Disruptor(EventFactory<T>, int, Executor) - Constructor for class com.lmax.disruptor.dsl.Disruptor
Create a new Disruptor.
Disruptor(EventFactory<T>, Executor, ClaimStrategy, WaitStrategy) - Constructor for class com.lmax.disruptor.dsl.Disruptor
Create a new Disruptor.
drainAndHalt() - Method in class com.lmax.disruptor.WorkerPool
Wait for the RingBuffer to drain of published events then halt the workers.

E

EventFactory<T> - Interface in com.lmax.disruptor
Called by the RingBuffer to pre-populate all the events to fill the RingBuffer.
EventHandler<T> - Interface in com.lmax.disruptor
Callback interface to be implemented for processing events as they become available in the RingBuffer
EventHandlerGroup<T> - Class in com.lmax.disruptor.dsl
A group of EventProcessors used as part of the Disruptor.
EventProcessor - Interface in com.lmax.disruptor
EventProcessors waitFor events to become available for consumption from the RingBuffer An EventProcessor will be associated with a Thread for execution.
EventPublisher<E> - Class in com.lmax.disruptor
Utility class for simplifying publication to the ring buffer.
EventPublisher(RingBuffer<E>) - Constructor for class com.lmax.disruptor.EventPublisher
Construct from the ring buffer to be published to.
EventTranslator<T> - Interface in com.lmax.disruptor
Implementations translate another data representations into events claimed from the RingBuffer
ExceptionHandler - Interface in com.lmax.disruptor
Callback handler for uncaught exceptions in the event processing cycle of the BatchEventProcessor
ExceptionHandlerSetting<T> - Class in com.lmax.disruptor.dsl
A support class used as part of setting an exception handler for a specific event handler.

F

FatalExceptionHandler - Class in com.lmax.disruptor
Convenience implementation of an exception handler that using standard JDK logging to log the exception as Level.SEVERE and re-throw it wrapped in a RuntimeException
FatalExceptionHandler() - Constructor for class com.lmax.disruptor.FatalExceptionHandler
 
FatalExceptionHandler(Logger) - Constructor for class com.lmax.disruptor.FatalExceptionHandler
 
fillInStackTrace() - Method in exception com.lmax.disruptor.AlertException
Overridden so the stack trace is not filled in for this exception for performance reasons.
fillInStackTrace() - Method in exception com.lmax.disruptor.InsufficientCapacityException
 
fillInStackTrace() - Method in exception com.lmax.disruptor.TimeoutException
Overridden so the stack trace is not filled in for this exception for performance reasons.
forcePublish(long) - Method in class com.lmax.disruptor.Sequencer
Force the publication of a cursor sequence.

G

get(long) - Method in class com.lmax.disruptor.RingBuffer
Get the event for a given sequence in the RingBuffer.
get() - Method in class com.lmax.disruptor.Sequence
 
get() - Method in class com.lmax.disruptor.SequenceGroup
Get the minimum sequence value for the group.
get() - Method in class com.lmax.disruptor.util.MutableLong
Get the long value.
getBarrierFor(EventHandler<T>) - Method in class com.lmax.disruptor.dsl.Disruptor
Get the SequenceBarrier used by a specific handler.
getBufferSize() - Method in class com.lmax.disruptor.AbstractMultithreadedClaimStrategy
 
getBufferSize() - Method in interface com.lmax.disruptor.ClaimStrategy
Get the size of the data structure used to buffer events.
getBufferSize() - Method in class com.lmax.disruptor.Sequencer
The capacity of the data structure to hold entries.
getBufferSize() - Method in class com.lmax.disruptor.SingleThreadedClaimStrategy
 
getCount() - Method in class com.lmax.disruptor.collections.Histogram
Count total number of recorded observations.
getCountAt(int) - Method in class com.lmax.disruptor.collections.Histogram
Get the count of observations at a given index.
getCursor() - Method in interface com.lmax.disruptor.SequenceBarrier
Delegate a call to the Sequencer.getCursor()
getCursor() - Method in class com.lmax.disruptor.Sequencer
Get the value of the cursor indicating the published sequence.
getEnd() - Method in class com.lmax.disruptor.BatchDescriptor
Get the end sequence of a batch.
getFourNinesUpperBound() - Method in class com.lmax.disruptor.collections.Histogram
Calculate the upper bound within which 99.99% of observations fall.
getMax() - Method in class com.lmax.disruptor.collections.Histogram
Get the maximum observed value.
getMean() - Method in class com.lmax.disruptor.collections.Histogram
Calculate the mean of all recorded observations.
getMin() - Method in class com.lmax.disruptor.collections.Histogram
Get the minimum observed value.
getMinimumSequence(Sequence[]) - Static method in class com.lmax.disruptor.util.Util
Get the minimum sequence from an array of Sequences.
getRingBuffer() - Method in class com.lmax.disruptor.dsl.Disruptor
The the RingBuffer used by this Disruptor.
getSequence() - Method in class com.lmax.disruptor.AbstractMultithreadedClaimStrategy
 
getSequence() - Method in class com.lmax.disruptor.BatchEventProcessor
 
getSequence() - Method in interface com.lmax.disruptor.ClaimStrategy
Get the current claimed sequence.
getSequence() - Method in interface com.lmax.disruptor.EventProcessor
Get a reference to the Sequence being used by this EventProcessor.
getSequence() - Method in class com.lmax.disruptor.NoOpEventProcessor
 
getSequence() - Method in class com.lmax.disruptor.SingleThreadedClaimStrategy
 
getSequence() - Method in class com.lmax.disruptor.WorkProcessor
 
getSequencesFor(EventProcessor...) - Static method in class com.lmax.disruptor.util.Util
Get an array of Sequences for the passed EventProcessors
getSize() - Method in class com.lmax.disruptor.BatchDescriptor
Get the size of the batch.
getSize() - Method in class com.lmax.disruptor.collections.Histogram
Size of the list of interval bars.
getStart() - Method in class com.lmax.disruptor.BatchDescriptor
Get the starting sequence for a batch.
getTwoNinesUpperBound() - Method in class com.lmax.disruptor.collections.Histogram
Calculate the upper bound within which 99% of observations fall.
getUnsafe() - Static method in class com.lmax.disruptor.util.Util
 
getUpperBoundAt(int) - Method in class com.lmax.disruptor.collections.Histogram
Get the upper bound of an interval for an index.
getUpperBoundForFactor(double) - Method in class com.lmax.disruptor.collections.Histogram
Get the interval upper bound for a given factor of the observation population.
getWorkerSequences() - Method in class com.lmax.disruptor.WorkerPool
Get an array of Sequences representing the progress of the workers.

H

halt() - Method in class com.lmax.disruptor.BatchEventProcessor
 
halt() - Method in class com.lmax.disruptor.dsl.Disruptor
Calls EventProcessor.halt() on all of the event processors created via this disruptor.
halt() - Method in interface com.lmax.disruptor.EventProcessor
Signal that this EventProcessor should stop when it has finished consuming at the next clean break.
halt() - Method in class com.lmax.disruptor.NoOpEventProcessor
 
halt() - Method in class com.lmax.disruptor.WorkerPool
Halt all workers immediately at then end of their current cycle.
halt() - Method in class com.lmax.disruptor.WorkProcessor
 
handleEventException(Throwable, long, Object) - Method in interface com.lmax.disruptor.ExceptionHandler
Strategy for handling uncaught exceptions when processing an event.
handleEventException(Throwable, long, Object) - Method in class com.lmax.disruptor.FatalExceptionHandler
 
handleEventException(Throwable, long, Object) - Method in class com.lmax.disruptor.IgnoreExceptionHandler
 
handleEventsWith(EventHandler<T>...) - Method in class com.lmax.disruptor.dsl.Disruptor
Set up event handlers to handleEventException events from the ring buffer.
handleEventsWith(EventProcessor...) - Method in class com.lmax.disruptor.dsl.Disruptor
Set up custom event processors to handleEventException events from the ring buffer.
handleEventsWith(EventHandler<T>...) - Method in class com.lmax.disruptor.dsl.EventHandlerGroup
Set up batch handlers to handleEventException events from the ring buffer.
handleExceptionsFor(EventHandler<T>) - Method in class com.lmax.disruptor.dsl.Disruptor
Override the default exception handler for a specific handler.
handleExceptionsWith(ExceptionHandler) - Method in class com.lmax.disruptor.dsl.Disruptor
Specify an exception handler to be used for any future event handlers.
handleOnShutdownException(Throwable) - Method in interface com.lmax.disruptor.ExceptionHandler
Callback to notify of an exception during LifecycleAware.onShutdown()
handleOnShutdownException(Throwable) - Method in class com.lmax.disruptor.FatalExceptionHandler
 
handleOnShutdownException(Throwable) - Method in class com.lmax.disruptor.IgnoreExceptionHandler
 
handleOnStartException(Throwable) - Method in interface com.lmax.disruptor.ExceptionHandler
Callback to notify of an exception during LifecycleAware.onStart()
handleOnStartException(Throwable) - Method in class com.lmax.disruptor.FatalExceptionHandler
 
handleOnStartException(Throwable) - Method in class com.lmax.disruptor.IgnoreExceptionHandler
 
hasAvailableCapacity(int, Sequence[]) - Method in class com.lmax.disruptor.AbstractMultithreadedClaimStrategy
 
hasAvailableCapacity(int, Sequence[]) - Method in interface com.lmax.disruptor.ClaimStrategy
Is there available capacity in the buffer for the requested sequence.
hasAvailableCapacity(int) - Method in class com.lmax.disruptor.Sequencer
Has the buffer got capacity to allocate another sequence.
hasAvailableCapacity(int, Sequence[]) - Method in class com.lmax.disruptor.SingleThreadedClaimStrategy
 
Histogram - Class in com.lmax.disruptor.collections
Histogram for tracking the frequency of observations of values below interval upper bounds.
Histogram(long[]) - Constructor for class com.lmax.disruptor.collections.Histogram
Create a new Histogram with a provided list of interval bounds.

I

IgnoreExceptionHandler - Class in com.lmax.disruptor
Convenience implementation of an exception handler that using standard JDK logging to log the exception as Level.INFO
IgnoreExceptionHandler() - Constructor for class com.lmax.disruptor.IgnoreExceptionHandler
 
IgnoreExceptionHandler(Logger) - Constructor for class com.lmax.disruptor.IgnoreExceptionHandler
 
incrementAndGet(Sequence[]) - Method in class com.lmax.disruptor.AbstractMultithreadedClaimStrategy
 
incrementAndGet(int, Sequence[]) - Method in class com.lmax.disruptor.AbstractMultithreadedClaimStrategy
 
incrementAndGet(Sequence[]) - Method in interface com.lmax.disruptor.ClaimStrategy
Claim the next sequence in the Sequencer.
incrementAndGet(int, Sequence[]) - Method in interface com.lmax.disruptor.ClaimStrategy
Increment sequence by a delta and get the result.
incrementAndGet() - Method in class com.lmax.disruptor.Sequence
 
incrementAndGet(Sequence[]) - Method in class com.lmax.disruptor.SingleThreadedClaimStrategy
 
incrementAndGet(int, Sequence[]) - Method in class com.lmax.disruptor.SingleThreadedClaimStrategy
 
INITIAL_CURSOR_VALUE - Static variable in class com.lmax.disruptor.Sequencer
Set to -1 as sequence starting point
INSTANCE - Static variable in exception com.lmax.disruptor.AlertException
Pre-allocated exception to avoid garbage generation
INSTANCE - Static variable in exception com.lmax.disruptor.InsufficientCapacityException
 
INSTANCE - Static variable in exception com.lmax.disruptor.TimeoutException
Pre-allocated exception to avoid garbage generation
InsufficientCapacityException - Exception in com.lmax.disruptor
 
isAlerted() - Method in interface com.lmax.disruptor.SequenceBarrier
The current alert status for the barrier.

L

LifecycleAware - Interface in com.lmax.disruptor
Implement this interface to be notified when a thread for the BatchEventProcessor starts and shuts down.

M

MultiThreadedClaimStrategy - Class in com.lmax.disruptor
Strategy to be used when there are multiple publisher threads claiming sequences.
MultiThreadedClaimStrategy(int, int) - Constructor for class com.lmax.disruptor.MultiThreadedClaimStrategy
Construct a new multi-threaded publisher ClaimStrategy for a given buffer size.
MultiThreadedClaimStrategy(int) - Constructor for class com.lmax.disruptor.MultiThreadedClaimStrategy
Construct a new multi-threaded publisher ClaimStrategy for a given buffer size.
MultiThreadedLowContentionClaimStrategy - Class in com.lmax.disruptor
Strategy to be used when there are multiple publisher threads claiming sequences.
MultiThreadedLowContentionClaimStrategy(int) - Constructor for class com.lmax.disruptor.MultiThreadedLowContentionClaimStrategy
Construct a new multi-threaded publisher ClaimStrategy for a given buffer size.
MutableLong - Class in com.lmax.disruptor.util
Holder class for a long value.
MutableLong() - Constructor for class com.lmax.disruptor.util.MutableLong
Default constructor
MutableLong(long) - Constructor for class com.lmax.disruptor.util.MutableLong
Construct the holder with initial value.

N

newBarrier(Sequence...) - Method in class com.lmax.disruptor.Sequencer
Create a SequenceBarrier that gates on the the cursor and a list of Sequences
newBatchDescriptor(int) - Method in class com.lmax.disruptor.Sequencer
Create a new BatchDescriptor that is the minimum of the requested size and the buffer size.
newInstance() - Method in interface com.lmax.disruptor.EventFactory
 
next() - Method in class com.lmax.disruptor.Sequencer
Claim the next event in sequence for publishing.
next(BatchDescriptor) - Method in class com.lmax.disruptor.Sequencer
Claim the next batch of sequence numbers for publishing.
NoOpEventProcessor - Class in com.lmax.disruptor
No operation version of a EventProcessor that simply tracks a Sequencer.
NoOpEventProcessor(Sequencer) - Constructor for class com.lmax.disruptor.NoOpEventProcessor
Construct a EventProcessor that simply tracks a Sequencer.

O

onEvent(T, long, boolean) - Method in class com.lmax.disruptor.AggregateEventHandler
 
onEvent(T, long, boolean) - Method in interface com.lmax.disruptor.EventHandler
Called when a publisher has published an event to the RingBuffer
onEvent(T) - Method in interface com.lmax.disruptor.WorkHandler
Callback to indicate a unit of work needs to be processed.
onShutdown() - Method in class com.lmax.disruptor.AggregateEventHandler
 
onShutdown() - Method in interface com.lmax.disruptor.LifecycleAware
Called once just before the thread is shutdown.
onStart() - Method in class com.lmax.disruptor.AggregateEventHandler
 
onStart() - Method in interface com.lmax.disruptor.LifecycleAware
Called once on thread start before first event is available.

P

p1 - Variable in class com.lmax.disruptor.util.PaddedLong
 
p2 - Variable in class com.lmax.disruptor.util.PaddedLong
 
p3 - Variable in class com.lmax.disruptor.util.PaddedLong
 
p4 - Variable in class com.lmax.disruptor.util.PaddedLong
 
p5 - Variable in class com.lmax.disruptor.util.PaddedLong
 
p6 - Variable in class com.lmax.disruptor.util.PaddedLong
 
PaddedLong - Class in com.lmax.disruptor.util
Cache line padded long variable to be used when false sharing maybe an issue.
PaddedLong() - Constructor for class com.lmax.disruptor.util.PaddedLong
Default constructor
PaddedLong(long) - Constructor for class com.lmax.disruptor.util.PaddedLong
Construct with an initial value.
publish(long) - Method in class com.lmax.disruptor.Sequencer
Publish an event and make it visible to EventProcessors
publish(BatchDescriptor) - Method in class com.lmax.disruptor.Sequencer
Publish the batch of events in sequence.
publishEvent(EventTranslator<T>) - Method in class com.lmax.disruptor.dsl.Disruptor
Publish an event to the ring buffer.
publishEvent(EventTranslator<E>) - Method in class com.lmax.disruptor.EventPublisher
Publishes an event to the ring buffer.

R

remainingCapacity() - Method in class com.lmax.disruptor.Sequencer
 
remove(Sequence) - Method in class com.lmax.disruptor.SequenceGroup
Remove the first occurrence of the Sequence from this aggregate.
RingBuffer<T> - Class in com.lmax.disruptor
Ring based store of reusable entries containing the data representing an event being exchanged between event publisher and EventProcessors.
RingBuffer(EventFactory<T>, ClaimStrategy, WaitStrategy) - Constructor for class com.lmax.disruptor.RingBuffer
Construct a RingBuffer with the full option set.
RingBuffer(EventFactory<T>, int) - Constructor for class com.lmax.disruptor.RingBuffer
Construct a RingBuffer with default strategies of: MultiThreadedClaimStrategy and BlockingWaitStrategy
run() - Method in class com.lmax.disruptor.BatchEventProcessor
It is ok to have another thread rerun this method after a halt().
run() - Method in class com.lmax.disruptor.NoOpEventProcessor
 
run() - Method in class com.lmax.disruptor.WorkProcessor
It is ok to have another thread re-run this method after a halt().

S

Sequence - Class in com.lmax.disruptor
 
Sequence() - Constructor for class com.lmax.disruptor.Sequence
 
Sequence(long) - Constructor for class com.lmax.disruptor.Sequence
 
SequenceBarrier - Interface in com.lmax.disruptor
Coordination barrier for tracking the cursor for publishers and sequence of dependent EventProcessors for processing a data structure
SequenceGroup - Class in com.lmax.disruptor
Sequence group that can dynamically have Sequences added and removed while being thread safe.
SequenceGroup() - Constructor for class com.lmax.disruptor.SequenceGroup
Default Constructor
Sequencer - Class in com.lmax.disruptor
Coordinator for claiming sequences for access to a data structure while tracking dependent Sequences
Sequencer(ClaimStrategy, WaitStrategy) - Constructor for class com.lmax.disruptor.Sequencer
Construct a Sequencer with the selected strategies.
SequenceReportingEventHandler<T> - Interface in com.lmax.disruptor
Used by the BatchEventProcessor to set a callback allowing the EventHandler to notify when it has finished consuming an event if this happens after the EventHandler.onEvent(Object, long, boolean) call.
serialisePublishing(long, Sequence, int) - Method in interface com.lmax.disruptor.ClaimStrategy
Serialise publishers in sequence and set cursor to latest available sequence.
serialisePublishing(long, Sequence, int) - Method in class com.lmax.disruptor.MultiThreadedClaimStrategy
 
serialisePublishing(long, Sequence, int) - Method in class com.lmax.disruptor.MultiThreadedLowContentionClaimStrategy
 
serialisePublishing(long, Sequence, int) - Method in class com.lmax.disruptor.SingleThreadedClaimStrategy
 
set(long) - Method in class com.lmax.disruptor.Sequence
 
set(long) - Method in class com.lmax.disruptor.SequenceGroup
Set all Sequences in the group to a given value.
set(long) - Method in class com.lmax.disruptor.util.MutableLong
Set the long value.
setExceptionHandler(ExceptionHandler) - Method in class com.lmax.disruptor.BatchEventProcessor
Set a new ExceptionHandler for handling exceptions propagated out of the BatchEventProcessor
setGatingSequences(Sequence...) - Method in class com.lmax.disruptor.Sequencer
Set the sequences that will gate publishers to prevent the buffer wrapping.
setSequence(long, Sequence[]) - Method in class com.lmax.disruptor.AbstractMultithreadedClaimStrategy
 
setSequence(long, Sequence[]) - Method in interface com.lmax.disruptor.ClaimStrategy
Set the current sequence value for claiming an event in the Sequencer The caller should be held up until the claimed sequence is available by tracking the dependentSequences.
setSequence(long, Sequence[]) - Method in class com.lmax.disruptor.SingleThreadedClaimStrategy
 
setSequenceCallback(Sequence) - Method in interface com.lmax.disruptor.SequenceReportingEventHandler
Call by the BatchEventProcessor to setup the callback.
shutdown() - Method in class com.lmax.disruptor.dsl.Disruptor
Waits until all events currently in the disruptor have been processed by all event processors and then halts the processors.
signalAllWhenBlocking() - Method in class com.lmax.disruptor.BlockingWaitStrategy
 
signalAllWhenBlocking() - Method in class com.lmax.disruptor.BusySpinWaitStrategy
 
signalAllWhenBlocking() - Method in class com.lmax.disruptor.SleepingWaitStrategy
 
signalAllWhenBlocking() - Method in interface com.lmax.disruptor.WaitStrategy
Signal those EventProcessors waiting that the cursor has advanced.
signalAllWhenBlocking() - Method in class com.lmax.disruptor.YieldingWaitStrategy
 
SingleThreadedClaimStrategy - Class in com.lmax.disruptor
Optimised strategy can be used when there is a single publisher thread claiming sequences.
SingleThreadedClaimStrategy(int) - Constructor for class com.lmax.disruptor.SingleThreadedClaimStrategy
Construct a new single threaded publisher ClaimStrategy for a given buffer size.
size() - Method in class com.lmax.disruptor.SequenceGroup
Get the size of the group.
SleepingWaitStrategy - Class in com.lmax.disruptor
Sleeping strategy that initially spins, then uses a Thread.yield(), and eventually for the minimum number of nanos the OS and JVM will allow while the EventProcessors are waiting on a barrier.
SleepingWaitStrategy() - Constructor for class com.lmax.disruptor.SleepingWaitStrategy
 
start() - Method in class com.lmax.disruptor.dsl.Disruptor
Starts the event processors and returns the fully configured ring buffer.
start(Executor) - Method in class com.lmax.disruptor.WorkerPool
Start the worker pool processing events in sequence.
sumPaddingToPreventOptimisation() - Method in class com.lmax.disruptor.util.PaddedLong
 

T

then(EventHandler<T>...) - Method in class com.lmax.disruptor.dsl.EventHandlerGroup
Set up batch handlers to consume events from the ring buffer.
TimeoutException - Exception in com.lmax.disruptor
Used to signal that an operation has timed out and been aborted.
toString() - Method in class com.lmax.disruptor.collections.Histogram
 
toString() - Method in class com.lmax.disruptor.Sequence
 
translateTo(T, long) - Method in interface com.lmax.disruptor.EventTranslator
Translate a data representation into fields set in given event
tryNext(int) - Method in class com.lmax.disruptor.Sequencer
Attempt to claim the next event in sequence for publishing.
tryPublishEvent(EventTranslator<E>, int) - Method in class com.lmax.disruptor.EventPublisher
Attempts to publish an event to the ring buffer.

U

Util - Class in com.lmax.disruptor.util
Set of common functions used by the Disruptor
Util() - Constructor for class com.lmax.disruptor.util.Util
 

W

waitFor(long, Sequence, Sequence[], SequenceBarrier) - Method in class com.lmax.disruptor.BlockingWaitStrategy
 
waitFor(long, Sequence, Sequence[], SequenceBarrier, long, TimeUnit) - Method in class com.lmax.disruptor.BlockingWaitStrategy
 
waitFor(long, Sequence, Sequence[], SequenceBarrier) - Method in class com.lmax.disruptor.BusySpinWaitStrategy
 
waitFor(long, Sequence, Sequence[], SequenceBarrier, long, TimeUnit) - Method in class com.lmax.disruptor.BusySpinWaitStrategy
 
waitFor(long) - Method in interface com.lmax.disruptor.SequenceBarrier
Wait for the given sequence to be available for consumption.
waitFor(long, long, TimeUnit) - Method in interface com.lmax.disruptor.SequenceBarrier
Wait for the given sequence to be available for consumption with a time out.
waitFor(long, Sequence, Sequence[], SequenceBarrier) - Method in class com.lmax.disruptor.SleepingWaitStrategy
 
waitFor(long, Sequence, Sequence[], SequenceBarrier, long, TimeUnit) - Method in class com.lmax.disruptor.SleepingWaitStrategy
 
waitFor(long, Sequence, Sequence[], SequenceBarrier) - Method in interface com.lmax.disruptor.WaitStrategy
Wait for the given sequence to be available
waitFor(long, Sequence, Sequence[], SequenceBarrier, long, TimeUnit) - Method in interface com.lmax.disruptor.WaitStrategy
Wait for the given sequence to be available with a timeout specified.
waitFor(long, Sequence, Sequence[], SequenceBarrier) - Method in class com.lmax.disruptor.YieldingWaitStrategy
 
waitFor(long, Sequence, Sequence[], SequenceBarrier, long, TimeUnit) - Method in class com.lmax.disruptor.YieldingWaitStrategy
 
WaitStrategy - Interface in com.lmax.disruptor
Strategy employed for making EventProcessors wait on a cursor Sequence.
with(ExceptionHandler) - Method in class com.lmax.disruptor.dsl.ExceptionHandlerSetting
Specify the ExceptionHandler to use with the event handler.
WorkerPool<T> - Class in com.lmax.disruptor
A pool of WorkProcessors that will consume sequences so jobs can be farmed out across a pool of workers which are implemented the WorkHandler interface.
WorkerPool(RingBuffer<T>, SequenceBarrier, ExceptionHandler, WorkHandler<T>...) - Constructor for class com.lmax.disruptor.WorkerPool
Create a worker pool to enable an array of WorkHandlers to consume published sequences.
WorkerPool(EventFactory<T>, ClaimStrategy, WaitStrategy, ExceptionHandler, WorkHandler<T>...) - Constructor for class com.lmax.disruptor.WorkerPool
Construct a work pool with an internal RingBuffer for convenience.
WorkHandler<T> - Interface in com.lmax.disruptor
Callback interface to be implemented for processing units of work as they become available in the RingBuffer
WorkProcessor<T> - Class in com.lmax.disruptor
WorkProcessor for ensuring each sequence is handled by only a single processor, effectively consuming the sequence.
WorkProcessor(RingBuffer<T>, SequenceBarrier, WorkHandler<T>, ExceptionHandler, Sequence) - Constructor for class com.lmax.disruptor.WorkProcessor
Construct a WorkProcessor.

Y

YieldingWaitStrategy - Class in com.lmax.disruptor
Yielding strategy that uses a Thread.yield() for EventProcessors waiting on a barrier after an initially spinning.
YieldingWaitStrategy() - Constructor for class com.lmax.disruptor.YieldingWaitStrategy
 

A B C D E F G H I L M N O P R S T U W Y

Copyright © 2011 LMAX Ltd. All Rights Reserved.