brooklyn.management
Interface TaskQueueingContext


@Beta
public interface TaskQueueingContext

Marks a place where tasks can be added, e.g. a task which allows children to be added (including after it is activated); if the implementer of this is also a task, then it may be picked up by hierarchical methods (e.g. in DynamicTasks).

Since:
0.6.0

Method Summary
 List<Task<?>> getQueue()
          returns a list of queued tasks (immutable copy)
 Task<?> last()
          returns the last task in the queue, or null if none
 void queue(Task<?> t)
          queues the task for submission as part of this queueing context; should mark it as submitted
 

Method Detail

queue

void queue(Task<?> t)
queues the task for submission as part of this queueing context; should mark it as submitted


getQueue

List<Task<?>> getQueue()
returns a list of queued tasks (immutable copy)


last

Task<?> last()
returns the last task in the queue, or null if none



Copyright © 2013. All Rights Reserved.