public class VardanERSAP
extends java.lang.Thread
Modifier and Type | Class and Description |
---|---|
class |
VardanERSAP.ByteBufferFactory
Class used by the Disruptor's RingBuffer to populate itself with ByteBuffers.
|
(package private) class |
VardanERSAP.CrateAggregatingConsumer
Thread to consume from two streams in one crate and send (be a producer for) an output ring.
|
(package private) class |
VardanERSAP.CrateProducer
Thread to produce one stream in one crate.
|
(package private) class |
VardanERSAP.OutputRingConsumer
Thread to consume from output ring.
|
Modifier and Type | Field and Description |
---|---|
(package private) int |
byteBufferSize
Size of ByteBuffers in ring.
|
(package private) long[] |
crateAvailableSequences
Track which sequence is currently available from each of the crate rings.
|
(package private) com.lmax.disruptor.SequenceBarrier[] |
crateBarriers
1 barrier per stream
|
(package private) long[] |
crateNextSequences
Track which sequence the aggregating consumer wants next from each of the crate rings.
|
(package private) com.lmax.disruptor.RingBuffer<java.nio.ByteBuffer>[] |
crateRingBuffers
1 RingBuffer per stream.
|
(package private) int |
crateRingItemCount
Number of items in each ring buffer.
|
(package private) com.lmax.disruptor.Sequence[] |
crateSequences
1 sequence per stream
|
(package private) long |
outputAvailableSequence
Track which sequence is currently available from the output ring.
|
(package private) com.lmax.disruptor.SequenceBarrier |
outputBarrier
1 barrier for output ring's consumer
|
(package private) long |
outputNextSequence
Track which sequence the output consumer wants next from output ring.
|
(package private) com.lmax.disruptor.RingBuffer<java.nio.ByteBuffer> |
outputRingBuffer
1 output RingBuffer.
|
(package private) com.lmax.disruptor.Sequence |
outputSequence
1 sequence for the output ring's consumer
|
(package private) int |
streamCount
Number of streams in 1 crate.
|
Constructor and Description |
---|
VardanERSAP() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args) |
void |
run()
Run a setup with 2 crate producer threads, one crate consumer thread and one output ring
consumer thread.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
int streamCount
int byteBufferSize
int crateRingItemCount
com.lmax.disruptor.RingBuffer<java.nio.ByteBuffer>[] crateRingBuffers
com.lmax.disruptor.Sequence[] crateSequences
com.lmax.disruptor.SequenceBarrier[] crateBarriers
long[] crateNextSequences
long[] crateAvailableSequences
com.lmax.disruptor.RingBuffer<java.nio.ByteBuffer> outputRingBuffer
com.lmax.disruptor.Sequence outputSequence
com.lmax.disruptor.SequenceBarrier outputBarrier
long outputNextSequence
long outputAvailableSequence