public class AgentQueueAccessorImpl extends Object implements AgentQueueAccessor
Constructor and Description |
---|
AgentQueueAccessorImpl() |
Modifier and Type | Method and Description |
---|---|
CommonContext |
takeBuildContext(long id)
Takes a
BuildContext from the queue, blocking until one is available. |
@Nullable public CommonContext takeBuildContext(long id) throws InterruptedException
AgentQueueAccessor
BuildContext
from the queue, blocking until one is available.
The lock on the build is not released. The caller should call BuildExecutionManager.finishBuild(PlanResultKey)
to
release this lock when ready.
takeBuildContext
in interface AgentQueueAccessor
id
- the id of the agent that is taking the build context.BuildContext
, null in case of timeout on retrieval.InterruptedException
- if the calling Thread
is interrupted.Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.