|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.lmax.disruptor.AbstractMultithreadedClaimStrategy
com.lmax.disruptor.MultiThreadedLowContentionClaimStrategy
public final class MultiThreadedLowContentionClaimStrategy
Strategy to be used when there are multiple publisher threads claiming sequences. This strategy requires sufficient cores to allow multiple publishers to be concurrently claiming sequences and those thread a contented relatively infrequently.
| Constructor Summary | |
|---|---|
MultiThreadedLowContentionClaimStrategy(int bufferSize)
Construct a new multi-threaded publisher ClaimStrategy for a given buffer size. |
|
| Method Summary | |
|---|---|
void |
serialisePublishing(long sequence,
Sequence cursor,
int batchSize)
Serialise publishers in sequence and set cursor to latest available sequence. |
| Methods inherited from class com.lmax.disruptor.AbstractMultithreadedClaimStrategy |
|---|
checkAndIncrement, getBufferSize, getSequence, hasAvailableCapacity, incrementAndGet, incrementAndGet, setSequence |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiThreadedLowContentionClaimStrategy(int bufferSize)
ClaimStrategy for a given buffer size.
bufferSize - for the underlying data structure.| Method Detail |
|---|
public void serialisePublishing(long sequence,
Sequence cursor,
int batchSize)
ClaimStrategy
sequence - sequence to be appliedcursor - to serialise against.batchSize - of the sequence.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||