org.apache.felix.eventadmin.impl.tasks
Class AsyncDeliverTasks
java.lang.Object
org.apache.felix.eventadmin.impl.tasks.AsyncDeliverTasks
- All Implemented Interfaces:
- DeliverTask
public class AsyncDeliverTasks
- extends Object
- implements DeliverTask
This class does the actual work of the asynchronous event dispatch.
- Author:
- Felix Project Team
Method Summary |
void |
execute(HandlerTask[] tasks)
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 |
AsyncDeliverTasks
public AsyncDeliverTasks(DefaultThreadPool pool,
DeliverTask 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 eventdeliverTask
- The deliver tasks for dispatching the event.
execute
public void execute(HandlerTask[] tasks)
- This does not block an unrelated thread used to send a synchronous event.
- Specified by:
execute
in interface DeliverTask
- Parameters:
tasks
- The event handler dispatch tasks to execute- See Also:
DeliverTask.execute(org.apache.felix.eventadmin.impl.tasks.HandlerTask[])
Copyright © 2011 Apache Software Foundation. All Rights Reserved.