Class Dispatcher

  • Direct Known Subclasses:
    BasicDispatcher

    public abstract class Dispatcher
    extends Object
    Interface for event dispatchers. The primary role of a dispatcher is to deliver a set of events to a configured list of consumers. It may also transform, consolidate, and otherwise optimize the event stream prior to delivering events to its consumers.
    Version:
    $Revision$
    • Field Detail

      • identifier

        protected int identifier
        unique identifier of this dispatcher - cached hash of its text Name
    • Constructor Detail

      • Dispatcher

        protected Dispatcher​(String name)
    • Method Detail

      • getIdentifier

        public int getIdentifier()
        Returns:
        unique integer that identifies this Dispatcher configuration.
      • dispatch

        public abstract void dispatch​(Context ctx)
        Dispatch all events added to this Context according to configured consumers.
        Parameters:
        ctx - the execution context object