Class ConcurrentEventHandling<T extends Event>

  • Type Parameters:
    T - The type of events that are handled concurrently.
    All Implemented Interfaces:
    Callable<Boolean>

    public class ConcurrentEventHandling<T extends Event>
    extends Object
    implements Callable<Boolean>
    A simple class for handling events concurrently via an executor service.
    Author:
    Ulrich Kreher
    • Field Detail

      • handler

        protected final EventHandler handler
        The event handler.
      • event

        protected final T extends Event event
        The event to be handled.
    • Constructor Detail

      • ConcurrentEventHandling

        public ConcurrentEventHandling​(EventHandler handler,
                                       T event)
        Creates a new Callable for handling an event asynchronously.
        Parameters:
        handler - The event handler.
        event - The event to be handled.