Class SingleProducerSequencer.ProducerThreadAssertion

java.lang.Object
com.lmax.disruptor.SingleProducerSequencer.ProducerThreadAssertion
Enclosing class:
SingleProducerSequencer

private static class SingleProducerSequencer.ProducerThreadAssertion extends Object
Only used when assertions are enabled.
  • Field Details

    • PRODUCERS

      private static final Map<SingleProducerSequencer,Thread> PRODUCERS
      Tracks the threads publishing to SingleProducerSequencers to identify if more than one thread accesses any SingleProducerSequencer. I.e. it helps developers detect early if they use the wrong ProducerType.
  • Constructor Details

    • ProducerThreadAssertion

      private ProducerThreadAssertion()
  • Method Details

    • isSameThreadProducingTo

      public static boolean isSameThreadProducingTo(SingleProducerSequencer singleProducerSequencer)