|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.bamboo.v2.build.queue.AgentQueueAccessorImpl
public class AgentQueueAccessorImpl
An instance of this class is shared between multiple local agents
Constructor Summary | |
---|---|
AgentQueueAccessorImpl()
|
Method Summary | |
---|---|
CommonContext |
takeBuildContext(long id)
Takes a BuildContext from the queue, blocking until one is available. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AgentQueueAccessorImpl()
Method Detail |
---|
@Nullable public CommonContext takeBuildContext(long id) throws java.lang.InterruptedException
AgentQueueAccessor
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.
takeBuildContext
in interface AgentQueueAccessor
BuildContext
, null in case of timeout on retrieval.
java.lang.InterruptedException
- if the calling Thread
is interrupted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |