Package com.lmax.disruptor
Class SingleProducerSequencer.ProducerThreadAssertion
java.lang.Object
com.lmax.disruptor.SingleProducerSequencer.ProducerThreadAssertion
- Enclosing class:
SingleProducerSequencer
Only used when assertions are enabled.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Map<SingleProducerSequencer, Thread> Tracks the threads publishing toSingleProducerSequencers to identify if more than one thread accesses anySingleProducerSequencer. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisSameThreadProducingTo(SingleProducerSequencer singleProducerSequencer)
-
Field Details
-
PRODUCERS
Tracks the threads publishing toSingleProducerSequencers to identify if more than one thread accesses anySingleProducerSequencer. I.e. it helps developers detect early if they use the wrongProducerType.
-
-
Constructor Details
-
ProducerThreadAssertion
private ProducerThreadAssertion()
-
-
Method Details
-
isSameThreadProducingTo
-