public interface AgentQueueAccessor
Modifier and Type | Interface and Description |
---|---|
static class |
AgentQueueAccessor.QueueAccessResult |
Modifier and Type | Method and Description |
---|---|
CommonContext |
takeBuildContext(long agentId)
Deprecated.
since 7.1 use {
takeContext(long) } |
AgentQueueAccessor.QueueAccessResult |
takeContext(long agentId)
Takes a
CommonContext from the queue, blocking until one is available. |
@Deprecated @Nullable CommonContext takeBuildContext(long agentId) throws InterruptedException
takeContext(long)
}CommonContext
from the queue, blocking until one is available.
The lock on the build is not released. The caller should call com.atlassian.bamboo.build.BuildExecutionManager#finishBuild(PlanResultKey)
to
release this lock when ready.
agentId
- the id of the agent that is taking the build context.CommonContext
, null in case of timeout on retrieval.InterruptedException
- if the calling Thread
is interrupted.AgentQueueAccessor.QueueAccessResult takeContext(long agentId) throws InterruptedException
CommonContext
from the queue, blocking until one is available.
The lock on the build is not released. The caller should call com.atlassian.bamboo.build.BuildExecutionManager#finishBuild(PlanResultKey)
to
release this lock when ready.
agentId
- the id of the agent that is taking the build context.AgentQueueAccessor.QueueAccessResult
containing: CommonContext
on success, error message on error, nulls in case of timeout on retrieval.InterruptedException
- if the calling Thread
is interrupted.Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.