|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.v2.build.queue.AgentQueueAccessorImpl
public class AgentQueueAccessorImpl
Field Summary | |
---|---|
protected org.springframework.jms.core.JmsTemplate |
jmsTemplate
|
Constructor Summary | |
---|---|
AgentQueueAccessorImpl(org.springframework.jms.core.JmsTemplate jmsTemplate)
|
Method Summary | |
---|---|
protected java.lang.String |
getSelector(long id)
|
BuildContext |
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 |
Field Detail |
---|
protected final org.springframework.jms.core.JmsTemplate jmsTemplate
Constructor Detail |
---|
public AgentQueueAccessorImpl(org.springframework.jms.core.JmsTemplate jmsTemplate)
Method Detail |
---|
@NotNull public BuildContext 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
.
java.lang.InterruptedException
- if the calling Thread
is interrupted.protected java.lang.String getSelector(long id)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |