Class BatchRemoteBambooMessage
java.lang.Object
com.atlassian.bamboo.v2.build.agent.messages.BatchRemoteBambooMessage
- All Implemented Interfaces:
BambooAgentMessage,BambooAgentMessageBatch<BambooAgentMessage>,Serializable
public class BatchRemoteBambooMessage
extends Object
implements BambooAgentMessageBatch<BambooAgentMessage>
A
RemoteBambooMessage that contains a List of messages to be delivered in one go- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.bamboo.v2.build.agent.messages.BambooAgentMessageBatch
BambooAgentMessageBatch.BatchFactory -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(@NotNull BambooAgentMessage bambooAgentMessage) deliver()Delivers the message to the appropriate object in the local virtual machine.booleanIf true, the batch is going to be expensive to process.booleanValue of true indicates that the message send should be attempted even if the agent is in "heart attack" state.booleanshouldStartNewBatch(@NotNull BambooAgentMessage bambooAgentMessage) intsize()toString()
-
Method Details
-
add
- Specified by:
addin interfaceBambooAgentMessageBatch<BambooAgentMessage>
-
deliver
Description copied from interface:BambooAgentMessageDelivers the message to the appropriate object in the local virtual machine.- Specified by:
deliverin interfaceBambooAgentMessage- Returns:
- an optional reply to message (including error-reporting messages)
-
size
public int size()- Specified by:
sizein interfaceBambooAgentMessageBatch<BambooAgentMessage>
-
shouldStartNewBatch
- Specified by:
shouldStartNewBatchin interfaceBambooAgentMessageBatch<BambooAgentMessage>
-
isExpensive
public boolean isExpensive()Description copied from interface:BambooAgentMessageBatchIf true, the batch is going to be expensive to process.- Specified by:
isExpensivein interfaceBambooAgentMessageBatch<BambooAgentMessage>
-
shouldBeSentDuringHeartAttack
public boolean shouldBeSentDuringHeartAttack()Description copied from interface:BambooAgentMessageValue of true indicates that the message send should be attempted even if the agent is in "heart attack" state. "Heart attack" state means that heartbeat timeout has been exceeded, but the agent is still running with limited functionality in order to give itself a chance of finishing current build/deployment and returning its result should the communication be re-established.- Specified by:
shouldBeSentDuringHeartAttackin interfaceBambooAgentMessage
-
toString
-
descriptor
-