Class AsynchronousProducer<V>

  • Type Parameters:
    V - The listener payload
    All Implemented Interfaces:
    IProducer<V>, IProducerImpl<V>

    public class AsynchronousProducer<V>
    extends SynchronousProducer<V>
    An implementation of IProducer which calls listeners from a Cached Thread Pool. If listener implementations block then there may be performance issues so they should not do so, but they need not be thread safe.
    Author:
    bruce.skingle
    • Constructor Detail

      • AsynchronousProducer

        public AsynchronousProducer()
    • Method Detail

      • notify

        protected void notify​(org.symphonyoss.s2.fugue.pipeline.IConsumer<V> listener,
                              V value,
                              org.symphonyoss.s2.fugue.core.trace.ITraceContext trace)
        Overrides:
        notify in class SynchronousProducer<V>
      • shutdown

        public void shutdown()
      • isShutdown

        public boolean isShutdown()