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

A

AbstractEntry - Class in com.lmax.disruptor
Base implementation that must be extended for RingBuffer entries.
AbstractEntry() - Constructor for class com.lmax.disruptor.AbstractEntry
 
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.
alert() - Method in interface com.lmax.disruptor.ConsumerBarrier
Alert the consumers of a status change and stay in this status until cleared.
ALERT_EXCEPTION - Static variable in exception com.lmax.disruptor.AlertException
Pre-allocated exception to avoid garbage generation
AlertException - Exception in com.lmax.disruptor
Used to alert consumers waiting at a ConsumerBarrier of status changes.

B

BatchConsumer<T extends AbstractEntry> - Class in com.lmax.disruptor
Convenience class for handling the batching semantics of consuming entries from a RingBuffer and delegating the available AbstractEntrys to a BatchHandler.
BatchConsumer(ConsumerBarrier<T>, BatchHandler<T>) - Constructor for class com.lmax.disruptor.BatchConsumer
Construct a batch consumer that will automatically track the progress by updating its sequence when the BatchHandler.onAvailable(AbstractEntry) method returns.
BatchConsumer(ConsumerBarrier<T>, SequenceTrackingHandler<T>) - Constructor for class com.lmax.disruptor.BatchConsumer
Construct a batch consumer that will rely on the SequenceTrackingHandler to callback via the BatchConsumer.SequenceTrackerCallback when it has completed with a sequence within a batch.
BatchConsumer.SequenceTrackerCallback - Class in com.lmax.disruptor
Used by the BatchHandler to signal when it has completed consuming a given sequence.
BatchConsumer.SequenceTrackerCallback() - Constructor for class com.lmax.disruptor.BatchConsumer.SequenceTrackerCallback
 
BatchHandler<T extends AbstractEntry> - Interface in com.lmax.disruptor
Callback interface to be implemented for processing AbstractEntrys as they become available in the RingBuffer

C

ceilingNextPowerOfTwo(int) - Static method in class com.lmax.disruptor.Util
Calculate the next power of 2, greater than or equal to x.
claimEntry(long) - Method in interface com.lmax.disruptor.ForceFillProducerBarrier
Claim a specific sequence in the RingBuffer when only one producer is involved.
ClaimStrategy - Interface in com.lmax.disruptor
Strategies employed for claiming the sequence of AbstractEntrys in the RingBuffer by producers.
ClaimStrategy.MultiThreadedStrategy - Class in com.lmax.disruptor
Strategy to be used when there are multiple producer threads claiming AbstractEntrys.
ClaimStrategy.MultiThreadedStrategy() - Constructor for class com.lmax.disruptor.ClaimStrategy.MultiThreadedStrategy
 
ClaimStrategy.Option - Enum in com.lmax.disruptor
Indicates the threading policy to be applied for claiming AbstractEntrys by producers to the RingBuffer
ClaimStrategy.SingleThreadedStrategy - Class in com.lmax.disruptor
Optimised strategy can be used when there is a single producer thread claiming AbstractEntrys.
ClaimStrategy.SingleThreadedStrategy() - Constructor for class com.lmax.disruptor.ClaimStrategy.SingleThreadedStrategy
 
clear() - Method in class com.lmax.disruptor.collections.Histogram
Clear the list of interval counters.
clearAlert() - Method in interface com.lmax.disruptor.ConsumerBarrier
Clear the current alert status.
com.lmax.disruptor - package com.lmax.disruptor
The Disruptor is a concurrent programming framework for exchanging and coordinating work on a continuous series of items.
com.lmax.disruptor.collections - package com.lmax.disruptor.collections
 
commit(T) - Method in interface com.lmax.disruptor.ForceFillProducerBarrier
Commit an entry back to the RingBuffer to make it visible to Consumers.
commit(T) - Method in interface com.lmax.disruptor.ProducerBarrier
Commit an entry back to the RingBuffer to make it visible to Consumers
commit(SequenceBatch) - Method in interface com.lmax.disruptor.ProducerBarrier
Commit the batch of entries back to the RingBuffer.
Consumer - Interface in com.lmax.disruptor
EntryConsumers waitFor AbstractEntrys to become available for consumption from the RingBuffer
ConsumerBarrier<T extends AbstractEntry> - Interface in com.lmax.disruptor
Coordination barrier for tracking the cursor for producers and sequence of dependent Consumers for a RingBuffer
create() - Method in interface com.lmax.disruptor.EntryFactory
 
createConsumerBarrier(Consumer...) - Method in class com.lmax.disruptor.RingBuffer
Create a ConsumerBarrier that gates on the RingBuffer and a list of Consumers
createForceFillProducerBarrier(Consumer...) - Method in class com.lmax.disruptor.RingBuffer
Create a ForceFillProducerBarrier on this RingBuffer that tracks dependent Consumers.
createProducerBarrier(Consumer...) - Method in class com.lmax.disruptor.RingBuffer
Create a ProducerBarrier on this RingBuffer that tracks dependent Consumers.

E

EntryFactory<T extends AbstractEntry> - Interface in com.lmax.disruptor
Called by the RingBuffer to pre-populate all the AbstractEntrys to fill the RingBuffer.
EntryTranslator<T extends AbstractEntry> - Interface in com.lmax.disruptor
Implementations translate a other data representations into AbstractEntrys claimed from the RingBuffer
ExceptionHandler - Interface in com.lmax.disruptor
Callback handler for uncaught exceptions in the AbstractEntry processing cycle of the BatchConsumer

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.
ForceFillProducerBarrier<T extends AbstractEntry> - Interface in com.lmax.disruptor
Abstraction for claiming AbstractEntrys in a RingBuffer while tracking dependent Consumers.

G

getCapacity() - Method in class com.lmax.disruptor.RingBuffer
The capacity of the RingBuffer to hold entries.
getConsumerBarrier() - Method in class com.lmax.disruptor.BatchConsumer
Get the ConsumerBarrier the Consumer is waiting on.
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.ConsumerBarrier
Delegate a call to the RingBuffer.getCursor()
getCursor() - Method in interface com.lmax.disruptor.ForceFillProducerBarrier
Delegate a call to the RingBuffer.getCursor()
getCursor() - Method in interface com.lmax.disruptor.ProducerBarrier
Delegate a call to the RingBuffer.getCursor()
getCursor() - Method in class com.lmax.disruptor.RingBuffer
Get the current sequence that producers have committed to the RingBuffer.
getEnd() - Method in class com.lmax.disruptor.SequenceBatch
Get the end sequence of a batch.
getEntry(long) - Method in interface com.lmax.disruptor.ConsumerBarrier
Get the AbstractEntry for a given sequence from the underlying RingBuffer.
getEntry(long) - Method in interface com.lmax.disruptor.ProducerBarrier
Get the AbstractEntry for a given sequence from the underlying RingBuffer.
getEntry(long) - Method in class com.lmax.disruptor.RingBuffer
Get the AbstractEntry for a given sequence in the RingBuffer.
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(Consumer[]) - Static method in class com.lmax.disruptor.Util
Get the minimum sequence from an array of Consumers.
getSequence() - Method in class com.lmax.disruptor.AbstractEntry
Get the sequence number assigned to this item in the series.
getSequence() - Method in class com.lmax.disruptor.BatchConsumer
 
getSequence() - Method in interface com.lmax.disruptor.Consumer
Get the sequence up to which this Consumer has consumed AbstractEntrys
getSequence() - Method in class com.lmax.disruptor.NoOpConsumer
 
getSize() - Method in class com.lmax.disruptor.collections.Histogram
Size of the list of interval bars.
getSize() - Method in class com.lmax.disruptor.SequenceBatch
Get the size of the batch.
getStart() - Method in class com.lmax.disruptor.SequenceBatch
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.
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.

H

halt() - Method in class com.lmax.disruptor.BatchConsumer
 
halt() - Method in interface com.lmax.disruptor.Consumer
Signal that this Consumer should stop when it has finished consuming at the next clean break.
halt() - Method in class com.lmax.disruptor.NoOpConsumer
 
handle(Exception, AbstractEntry) - Method in interface com.lmax.disruptor.ExceptionHandler
Strategy for handling uncaught exceptions when processing an AbstractEntry.
handle(Exception, AbstractEntry) - Method in class com.lmax.disruptor.FatalExceptionHandler
 
handle(Exception, AbstractEntry) - Method in class com.lmax.disruptor.IgnoreExceptionHandler
 
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() - Method in interface com.lmax.disruptor.ClaimStrategy
Claim the next sequence index in the RingBuffer and increment.
incrementAndGet(int) - Method in interface com.lmax.disruptor.ClaimStrategy
Increment by a delta and get the result.
incrementAndGet() - Method in class com.lmax.disruptor.ClaimStrategy.MultiThreadedStrategy
 
incrementAndGet(int) - Method in class com.lmax.disruptor.ClaimStrategy.MultiThreadedStrategy
 
incrementAndGet() - Method in class com.lmax.disruptor.ClaimStrategy.SingleThreadedStrategy
 
incrementAndGet(int) - Method in class com.lmax.disruptor.ClaimStrategy.SingleThreadedStrategy
 
INITIAL_CURSOR_VALUE - Static variable in class com.lmax.disruptor.RingBuffer
Set to -1 as sequence starting point
isAlerted() - Method in interface com.lmax.disruptor.ConsumerBarrier
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 BatchConsumer starts and shuts down.

N

nextEntries(SequenceBatch) - Method in interface com.lmax.disruptor.ProducerBarrier
Claim the next batch of AbstractEntrys in sequence.
nextEntry() - Method in interface com.lmax.disruptor.ProducerBarrier
Claim the next AbstractEntry in sequence for a producer on the RingBuffer
NoOpConsumer - Class in com.lmax.disruptor
No operation version of a Consumer that simply tracks a RingBuffer.
NoOpConsumer(RingBuffer) - Constructor for class com.lmax.disruptor.NoOpConsumer
Construct a Consumer that simply tracks a RingBuffer.

O

onAvailable(T) - Method in interface com.lmax.disruptor.BatchHandler
Called when a publisher has committed an AbstractEntry to the RingBuffer
onCompleted(long) - Method in class com.lmax.disruptor.BatchConsumer.SequenceTrackerCallback
Notify that the handler has consumed up to a given sequence.
onEndOfBatch() - Method in interface com.lmax.disruptor.BatchHandler
Called after each batch of items has been have been processed before the next waitFor call on a ConsumerBarrier.
onShutdown() - Method in interface com.lmax.disruptor.LifecycleAware
Called once just before the thread is shutdown.
onStart() - Method in interface com.lmax.disruptor.LifecycleAware
Called once on thread start before first entry is available.

P

p1 - Variable in class com.lmax.disruptor.BatchConsumer
 
p1 - Variable in class com.lmax.disruptor.RingBuffer
 
p10 - Variable in class com.lmax.disruptor.BatchConsumer
 
p10 - Variable in class com.lmax.disruptor.RingBuffer
 
p11 - Variable in class com.lmax.disruptor.BatchConsumer
 
p11 - Variable in class com.lmax.disruptor.RingBuffer
 
p12 - Variable in class com.lmax.disruptor.BatchConsumer
 
p12 - Variable in class com.lmax.disruptor.RingBuffer
 
p13 - Variable in class com.lmax.disruptor.BatchConsumer
 
p13 - Variable in class com.lmax.disruptor.RingBuffer
 
p14 - Variable in class com.lmax.disruptor.BatchConsumer
 
p14 - Variable in class com.lmax.disruptor.RingBuffer
 
p15 - Variable in class com.lmax.disruptor.BatchConsumer
 
p16 - Variable in class com.lmax.disruptor.BatchConsumer
 
p17 - Variable in class com.lmax.disruptor.BatchConsumer
 
p18 - Variable in class com.lmax.disruptor.BatchConsumer
 
p19 - Variable in class com.lmax.disruptor.BatchConsumer
 
p2 - Variable in class com.lmax.disruptor.BatchConsumer
 
p2 - Variable in class com.lmax.disruptor.RingBuffer
 
p20 - Variable in class com.lmax.disruptor.BatchConsumer
 
p3 - Variable in class com.lmax.disruptor.BatchConsumer
 
p3 - Variable in class com.lmax.disruptor.RingBuffer
 
p4 - Variable in class com.lmax.disruptor.BatchConsumer
 
p4 - Variable in class com.lmax.disruptor.RingBuffer
 
p5 - Variable in class com.lmax.disruptor.BatchConsumer
 
p5 - Variable in class com.lmax.disruptor.RingBuffer
 
p6 - Variable in class com.lmax.disruptor.BatchConsumer
 
p6 - Variable in class com.lmax.disruptor.RingBuffer
 
p7 - Variable in class com.lmax.disruptor.BatchConsumer
 
p7 - Variable in class com.lmax.disruptor.RingBuffer
 
p8 - Variable in class com.lmax.disruptor.BatchConsumer
 
p8 - Variable in class com.lmax.disruptor.RingBuffer
 
p9 - Variable in class com.lmax.disruptor.BatchConsumer
 
p9 - Variable in class com.lmax.disruptor.RingBuffer
 
ProducerBarrier<T extends AbstractEntry> - Interface in com.lmax.disruptor
Abstraction for claiming AbstractEntrys in a RingBuffer while tracking dependent Consumers

R

RingBuffer<T extends AbstractEntry> - Class in com.lmax.disruptor
Ring based store of reusable entries containing the data representing an AbstractEntry being exchanged between producers and consumers.
RingBuffer(EntryFactory<T>, int, ClaimStrategy.Option, WaitStrategy.Option) - Constructor for class com.lmax.disruptor.RingBuffer
Construct a RingBuffer with the full option set.
RingBuffer(EntryFactory<T>, int) - Constructor for class com.lmax.disruptor.RingBuffer
Construct a RingBuffer with default strategies of: ClaimStrategy.Option.MULTI_THREADED and WaitStrategy.Option.BLOCKING
run() - Method in class com.lmax.disruptor.BatchConsumer
It is ok to have another thread rerun this method after a halt().
run() - Method in class com.lmax.disruptor.NoOpConsumer
 

S

SequenceBatch - Class in com.lmax.disruptor
Used to record the batch of sequences claimed in a RingBuffer.
SequenceBatch(int) - Constructor for class com.lmax.disruptor.SequenceBatch
Create a holder for tracking a batch of claimed sequences in a RingBuffer
SequenceTrackingHandler<T extends AbstractEntry> - Interface in com.lmax.disruptor
Used by the BatchConsumer to set a callback allowing the BatchHandler to notify when it has finished consuming an AbstractEntry if this happens after the BatchHandler.onAvailable(AbstractEntry) call.
setExceptionHandler(ExceptionHandler) - Method in class com.lmax.disruptor.BatchConsumer
Set a new ExceptionHandler for handling exceptions propagated out of the BatchConsumer
setSequence(long) - Method in class com.lmax.disruptor.ClaimStrategy.MultiThreadedStrategy
 
setSequence(long) - Method in interface com.lmax.disruptor.ClaimStrategy
Set the current sequence value for claiming AbstractEntry in the RingBuffer
setSequence(long) - Method in class com.lmax.disruptor.ClaimStrategy.SingleThreadedStrategy
 
setSequenceTrackerCallback(BatchConsumer.SequenceTrackerCallback) - Method in interface com.lmax.disruptor.SequenceTrackingHandler
Call by the BatchConsumer to setup the callback.
signalAll() - Method in class com.lmax.disruptor.WaitStrategy.BlockingStrategy
 
signalAll() - Method in class com.lmax.disruptor.WaitStrategy.BusySpinStrategy
 
signalAll() - Method in interface com.lmax.disruptor.WaitStrategy
Signal those waiting that the RingBuffer cursor has advanced.
signalAll() - Method in class com.lmax.disruptor.WaitStrategy.YieldingStrategy
 

T

toString() - Method in class com.lmax.disruptor.collections.Histogram
 
translateTo(T) - Method in interface com.lmax.disruptor.EntryTranslator
Translate a data representation into fields set in given AbstractEntry

U

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

V

valueOf(String) - Static method in enum com.lmax.disruptor.ClaimStrategy.Option
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.lmax.disruptor.WaitStrategy.Option
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.lmax.disruptor.ClaimStrategy.Option
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.lmax.disruptor.WaitStrategy.Option
Returns an array containing the constants of this enum type, in the order they are declared.

W

waitFor(long) - Method in interface com.lmax.disruptor.ConsumerBarrier
Wait for the given sequence to be available for consumption.
waitFor(long, long, TimeUnit) - Method in interface com.lmax.disruptor.ConsumerBarrier
Wait for the given sequence to be available for consumption with a time out.
waitFor(Consumer[], RingBuffer, ConsumerBarrier, long) - Method in class com.lmax.disruptor.WaitStrategy.BlockingStrategy
 
waitFor(Consumer[], RingBuffer, ConsumerBarrier, long, long, TimeUnit) - Method in class com.lmax.disruptor.WaitStrategy.BlockingStrategy
 
waitFor(Consumer[], RingBuffer, ConsumerBarrier, long) - Method in class com.lmax.disruptor.WaitStrategy.BusySpinStrategy
 
waitFor(Consumer[], RingBuffer, ConsumerBarrier, long, long, TimeUnit) - Method in class com.lmax.disruptor.WaitStrategy.BusySpinStrategy
 
waitFor(Consumer[], RingBuffer, ConsumerBarrier, long) - Method in interface com.lmax.disruptor.WaitStrategy
Wait for the given sequence to be available for consumption in a RingBuffer
waitFor(Consumer[], RingBuffer, ConsumerBarrier, long, long, TimeUnit) - Method in interface com.lmax.disruptor.WaitStrategy
Wait for the given sequence to be available for consumption in a RingBuffer with a timeout specified.
waitFor(Consumer[], RingBuffer, ConsumerBarrier, long) - Method in class com.lmax.disruptor.WaitStrategy.YieldingStrategy
 
waitFor(Consumer[], RingBuffer, ConsumerBarrier, long, long, TimeUnit) - Method in class com.lmax.disruptor.WaitStrategy.YieldingStrategy
 
WaitStrategy - Interface in com.lmax.disruptor
Strategy employed for making Consumers wait on a RingBuffer.
WaitStrategy.BlockingStrategy - Class in com.lmax.disruptor
Blocking strategy that uses a lock and condition variable for Consumers waiting on a barrier.
WaitStrategy.BlockingStrategy() - Constructor for class com.lmax.disruptor.WaitStrategy.BlockingStrategy
 
WaitStrategy.BusySpinStrategy - Class in com.lmax.disruptor
Busy Spin strategy that uses a busy spin loop for Consumers waiting on a barrier.
WaitStrategy.BusySpinStrategy() - Constructor for class com.lmax.disruptor.WaitStrategy.BusySpinStrategy
 
WaitStrategy.Option - Enum in com.lmax.disruptor
Strategy options which are available to those waiting on a RingBuffer
WaitStrategy.YieldingStrategy - Class in com.lmax.disruptor
Yielding strategy that uses a Thread.yield() for Consumers waiting on a barrier.
WaitStrategy.YieldingStrategy() - Constructor for class com.lmax.disruptor.WaitStrategy.YieldingStrategy
 

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

Copyright © 2011 LMAX Ltd. All Rights Reserved.