Package org.jlab.coda.emu.test
Class VardanERSAP
java.lang.Object
java.lang.Thread
org.jlab.coda.emu.test.VardanERSAP
- All Implemented Interfaces:
Runnable
This class is an example of how one might take 2 producers (one for each ring)
and have a consumer that reads one item from each ring and puts them both into
a third, output ring. That output ring has a consumer that looks at each item
in the output ring.
Note: there are more efficient ways of programming this.
This is the simplest and most straight forward.
If it works, we can think about making it faster.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassClass used by the Disruptor's RingBuffer to populate itself with ByteBuffers.Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield