com.atlassian.bamboo.v2.build.queue
Interface AgentQueueAccessor

All Known Implementing Classes:
AgentQueueAccessorImpl, RemoteAgentQueueAccessorImpl

public interface AgentQueueAccessor


Method Summary
 CommonContext takeBuildContext(long agentId)
          Takes a BuildContext from the queue, blocking until one is available.
 

Method Detail

takeBuildContext

@Nullable
CommonContext takeBuildContext(long agentId)
                               throws java.lang.InterruptedException
Takes a BuildContext from the queue, blocking until one is available.

The lock on the build is not released. The caller should call BuildExecutionManager#finishProcess to release this lock when ready.

Parameters:
the - long id of the agent that is taking the build context.
Returns:
The BuildContext, null in case of timeout on retrieval.
Throws:
java.lang.InterruptedException - if the calling Thread is interrupted.


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.