Brooklyn

brooklyn.management
[Java] 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
java.util.List 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

getQueue

public java.util.List getQueue()
returns a list of queued tasks (immutable copy)


last

public Task last()
returns the last task in the queue, or null if none


queue

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


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.