Interface IProducerImpl<V>

  • Type Parameters:
    V - The type of objects produced.
    All Superinterfaces:
    IProducer<V>
    All Known Implementing Classes:
    AsynchronousProducer, Monitor, SynchronousProducer

    public interface IProducerImpl<V>
    extends IProducer<V>
    The implementation side of a producer which has the additional method to notify listeners of the production of an item.
    Author:
    Bruce Skingle
    • Method Detail

      • produce

        void produce​(V item,
                     org.symphonyoss.s2.fugue.core.trace.ITraceContext trace)
        Notify all registered listeners that the given item has been produced.
        Parameters:
        item - An item which has been produced.
        trace - A trace context.