|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.felix.eventadmin.impl.dispatch.TaskHandler
public class TaskHandler
This class implements the TaskQueue and the TaskProducer interface. It makes the tasks added via the queue interface available via the producer interface until the queue is closed and the producer returns null.
TaskQueue,
TaskProducer| Constructor Summary | |
|---|---|
TaskHandler()
|
|
| Method Summary | |
|---|---|
void |
append(HandlerTask[] tasks)
Append the tasks to this queue in one atomic operation while preserving their order. |
void |
close(HandlerTask shutdownTask)
Close the queue. |
HandlerTask |
next()
Block until a new task is ready and is returned or no more tasks will be returned. |
void |
push(HandlerTask[] tasks)
Push the tasks to this queue in one atomic operation while preserving their order. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TaskHandler()
| Method Detail |
|---|
public void append(HandlerTask[] tasks)
append in interface TaskQueuetasks - The tasks to append to this queue
IllegalStateException - in case that this queue is already closedTaskQueue.append(HandlerTask[])public void push(HandlerTask[] tasks)
push in interface TaskQueuetasks - The tasks to push to the front of this queue.
IllegalStateException - in case that this queue is already closedTaskQueue.push(HandlerTask[])public void close(HandlerTask shutdownTask)
close in interface TaskQueueshutdownTask - The task to execute once the queue is emptyTaskQueue.close(HandlerTask)public HandlerTask next()
next in interface TaskProducerTaskProducer.next()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||