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 TypeMethodDescriptionvoid
add
(@NotNull BambooAgentMessage bambooAgentMessage) deliver()
Delivers the message to the appropriate object in the local virtual machine.boolean
If true, the batch is going to be expensive to process.boolean
Value of true indicates that the message send should be attempted even if the agent is in "heart attack" state.boolean
shouldStartNewBatch
(@NotNull BambooAgentMessage bambooAgentMessage) int
size()
toString()
-
Method Details
-
add
- Specified by:
add
in interfaceBambooAgentMessageBatch<BambooAgentMessage>
-
deliver
Description copied from interface:BambooAgentMessage
Delivers the message to the appropriate object in the local virtual machine.- Specified by:
deliver
in interfaceBambooAgentMessage
- Returns:
- an optional reply to message (including error-reporting messages)
-
size
public int size()- Specified by:
size
in interfaceBambooAgentMessageBatch<BambooAgentMessage>
-
shouldStartNewBatch
- Specified by:
shouldStartNewBatch
in interfaceBambooAgentMessageBatch<BambooAgentMessage>
-
isExpensive
public boolean isExpensive()Description copied from interface:BambooAgentMessageBatch
If true, the batch is going to be expensive to process.- Specified by:
isExpensive
in interfaceBambooAgentMessageBatch<BambooAgentMessage>
-
shouldBeSentDuringHeartAttack
public boolean shouldBeSentDuringHeartAttack()Description copied from interface:BambooAgentMessage
Value 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:
shouldBeSentDuringHeartAttack
in interfaceBambooAgentMessage
-
toString
-
descriptor
-