com.atlassian.bamboo.v2.build.agent.messages
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:
- Serialized Form
add
public void add(@NotNull
BambooAgentMessage bambooAgentMessage)
- Specified by:
add
in interface BambooAgentMessageBatch<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 interface BambooAgentMessage
- Returns:
- an optional reply to message (including error-reporting messages)
size
public int size()
- Specified by:
size
in interface BambooAgentMessageBatch<BambooAgentMessage>
shouldStartNewBatch
public boolean shouldStartNewBatch(@NotNull
BambooAgentMessage bambooAgentMessage)
- Specified by:
shouldStartNewBatch
in interface BambooAgentMessageBatch<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 interface BambooAgentMessageBatch<BambooAgentMessage>
toString
public String toString()
- Overrides:
toString
in class Object
descriptor
public static BambooAgentMessageBatch.Descriptor<BambooAgentMessage> descriptor()
Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.