com.atlassian.bamboo.v2.build.agent.messages
Class BatchRemoteBambooMessage

java.lang.Object
  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.bamboo.v2.build.agent.messages.BambooAgentMessageBatch
BambooAgentMessageBatch.Descriptor<T extends BambooAgentMessage>
 
Method Summary
 void add(BambooAgentMessage bambooAgentMessage)
           
 Object deliver()
          Delivers the message to the appropriate object in the local virtual machine.
static BambooAgentMessageBatch.Descriptor<BambooAgentMessage> descriptor()
           
 boolean isExpensive()
          If true, the batch is going to be expensive to process.
 boolean shouldStartNewBatch(BambooAgentMessage bambooAgentMessage)
           
 int size()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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.