Class AsyncDeliverTasks

java.lang.Object
org.apache.felix.eventadmin.impl.tasks.AsyncDeliverTasks

public class AsyncDeliverTasks
extends java.lang.Object
This class does the actual work of the asynchronous event dispatch.
Author:
Felix Project Team
  • Constructor Summary

    Constructors 
    Constructor Description
    AsyncDeliverTasks​(DefaultThreadPool pool, SyncDeliverTasks deliverTask)
    The constructor of the class that will use the asynchronous.
  • Method Summary

    Modifier and Type Method Description
    void execute​(java.util.Collection<EventHandlerProxy> tasks, org.osgi.service.event.Event event)
    This does not block an unrelated thread used to send a synchronous event.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AsyncDeliverTasks

      public AsyncDeliverTasks​(DefaultThreadPool pool, SyncDeliverTasks deliverTask)
      The constructor of the class that will use the asynchronous.
      Parameters:
      pool - The thread pool used to spin-off new asynchronous event dispatching threads in case of timeout or that the asynchronous event dispatching thread is used to send a synchronous event
      deliverTask - The deliver tasks for dispatching the event.
  • Method Details

    • execute

      public void execute​(java.util.Collection<EventHandlerProxy> tasks, org.osgi.service.event.Event event)
      This does not block an unrelated thread used to send a synchronous event.
      Parameters:
      tasks - The event handler dispatch tasks to execute
      event - The event