com.atlassian.bamboo.v2.build.agent.messages
Class LogMessageBatch
java.lang.Object
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
LogMessageBatch
public LogMessageBatch()
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.