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>
ARemoteBambooMessage
that contains aList
of messages to be delivered in one go- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.atlassian.bamboo.v2.build.agent.messages.BambooAgentMessageBatch
BambooAgentMessageBatch.BatchFactory
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(@NotNull BambooAgentMessage bambooAgentMessage)
Object
deliver()
Delivers the message to the appropriate object in the local virtual machine.static BambooAgentMessageBatch.BatchFactory
descriptor()
boolean
isExpensive()
If true, the batch is going to be expensive to process.boolean
shouldBeSentDuringHeartAttack()
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()
String
toString()
-
-
-
Method Detail
-
add
public void add(@NotNull @NotNull BambooAgentMessage bambooAgentMessage)
- Specified by:
add
in interfaceBambooAgentMessageBatch<BambooAgentMessage>
-
deliver
public Object 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
public boolean shouldStartNewBatch(@NotNull @NotNull BambooAgentMessage bambooAgentMessage)
- 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
-
descriptor
public static BambooAgentMessageBatch.BatchFactory descriptor()
-
-