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

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.agent.messages.LogMessageBatch
All Implemented Interfaces:
BambooAgentMessage, BambooAgentMessageBatch<AbstractAddLogEntry>, SelfSerialisingMessage, Serializable

public class LogMessageBatch
extends Object
implements BambooAgentMessageBatch<AbstractAddLogEntry>, SelfSerialisingMessage

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
LogMessageBatch()
           
 
Method Summary
 void add(AbstractAddLogEntry abstractAddLogEntry)
           
 Object deliver()
          Delivers the message to the appropriate object in the local virtual machine.
static BambooAgentMessageBatch.Descriptor<AbstractAddLogEntry> descriptor()
           
 Queue<AbstractAddLogEntry> drainMessages()
           
 int getDeserialiserId()
           
 LoggerId<? extends Serializable> getLoggerId()
           
 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
 

Constructor Detail

LogMessageBatch

public LogMessageBatch()
Method Detail

deliver

@Nullable
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)

add

public void add(@NotNull
                AbstractAddLogEntry abstractAddLogEntry)
Specified by:
add in interface BambooAgentMessageBatch<AbstractAddLogEntry>

getLoggerId

@Nullable
public LoggerId<? extends Serializable> getLoggerId()

drainMessages

@NotNull
public Queue<AbstractAddLogEntry> drainMessages()

size

public int size()
Specified by:
size in interface BambooAgentMessageBatch<AbstractAddLogEntry>

shouldStartNewBatch

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

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<AbstractAddLogEntry>

descriptor

public static BambooAgentMessageBatch.Descriptor<AbstractAddLogEntry> descriptor()

getDeserialiserId

public int getDeserialiserId()
Specified by:
getDeserialiserId in interface SelfSerialisingMessage

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.