Class Broker<V>

  • All Implemented Interfaces:
    Serializable

    public class Broker<V>
    extends Object
    implements Serializable

    An implementation of the Producer Consumer problem in which one or more producers are generating data for one or more consumers to process.

    Author:
    David B. Bracewell
    See Also:
    Serialized Form
    • Method Detail

      • builder

        public static <V> Broker.Builder<V> builder()
        Creates a Builder to construct Broker instances.
        Returns:
        A builder instance
      • run

        public boolean run()
        Starts execution of the broker.
        Returns:
        Returns true if the broker completed without interruption, false otherwise