Class ProcessorContext

    • Field Detail

      • DEFAULT_MAX_PARSER_COUNT

        public static final int DEFAULT_MAX_PARSER_COUNT
      • DEFAULT_MAX_HANDLER_COUNT

        public static final int DEFAULT_MAX_HANDLER_COUNT
      • mProducersRunning

        protected final java.util.concurrent.atomic.AtomicInteger mProducersRunning
      • mConsumersRunning

        protected final java.util.concurrent.atomic.AtomicInteger mConsumersRunning
      • mMaxProducers

        protected int mMaxProducers
      • mMaxConsumers

        protected int mMaxConsumers
    • Constructor Detail

      • ProcessorContext

        protected ProcessorContext​(int maxProducers,
                                   int maxConsumers)
    • Method Detail

      • maxProducerCount

        public int maxProducerCount()
      • maxConsumerCount

        public int maxConsumerCount()
      • mayStartProducer

        public boolean mayStartProducer()
      • mayStartConsumer

        public boolean mayStartConsumer()
      • mustStopConsumer

        public boolean mustStopConsumer()
      • startedProducer

        public int startedProducer()
      • startedConsumer

        public int startedConsumer()
      • stoppedProducer

        public int stoppedProducer()
      • stoppedConsumer

        public void stoppedConsumer()
      • shared

        public static ProcessorContext shared()
        Returns:
        Default stream processor context