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>, java.io.Serializable

public class BatchRemoteBambooMessage
extends java.lang.Object
implements BambooAgentMessageBatch<BambooAgentMessage>

A RemoteBambooMessage that contains a List of messages to be dlivered 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>
 
Constructor Summary
BatchRemoteBambooMessage(java.util.List<BambooAgentMessage> messages)
          Deprecated. 
 
Method Summary
 void add(BambooAgentMessage bambooAgentMessage)
           
 java.lang.Object deliver()
          Delivers the message to the appropriate object in the local virtual machine.
static BambooAgentMessageBatch.Descriptor<BambooAgentMessage> descriptor()
           
 java.util.List<BambooAgentMessage> getMessages()
           
 boolean shouldStartNewBatch(BambooAgentMessage bambooAgentMessage)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BatchRemoteBambooMessage

@Deprecated
public BatchRemoteBambooMessage(@NotNull
                                           java.util.List<BambooAgentMessage> messages)
Deprecated. 

Method Detail

add

public void add(@NotNull
                BambooAgentMessage bambooAgentMessage)
Specified by:
add in interface BambooAgentMessageBatch<BambooAgentMessage>

deliver

public java.lang.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)

getMessages

@NotNull
public java.util.List<BambooAgentMessage> getMessages()
Specified by:
getMessages in interface BambooAgentMessageBatch<BambooAgentMessage>

shouldStartNewBatch

public boolean shouldStartNewBatch(@NotNull
                                   BambooAgentMessage bambooAgentMessage)
Specified by:
shouldStartNewBatch in interface BambooAgentMessageBatch<BambooAgentMessage>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

descriptor

public static BambooAgentMessageBatch.Descriptor<BambooAgentMessage> descriptor()


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.