public class LogMessageBatch extends Object implements BambooAgentMessageBatch<AbstractAddLogEntry>, SelfSerialisingMessage
BambooAgentMessageBatch.BatchFactory
Constructor and Description |
---|
LogMessageBatch() |
Modifier and Type | Method and Description |
---|---|
void |
add(AbstractAddLogEntry abstractAddLogEntry) |
Object |
deliver()
Delivers the message to the appropriate object in the local virtual machine.
|
static BambooAgentMessageBatch.BatchFactory |
descriptor() |
Queue<AbstractAddLogEntry> |
drainMessages() |
int |
getDeserialiserId() |
LoggerId<? extends Key> |
getLoggerId() |
boolean |
isExpensive()
If true, the batch is going to be expensive to process.
|
boolean |
shouldStartNewBatch(BambooAgentMessage bambooAgentMessage) |
int |
size() |
String |
toString() |
@Nullable public Object deliver()
BambooAgentMessage
deliver
in interface BambooAgentMessage
public void add(@NotNull AbstractAddLogEntry abstractAddLogEntry)
add
in interface BambooAgentMessageBatch<AbstractAddLogEntry>
@NotNull public Queue<AbstractAddLogEntry> drainMessages()
public int size()
size
in interface BambooAgentMessageBatch<AbstractAddLogEntry>
public boolean shouldStartNewBatch(@NotNull BambooAgentMessage bambooAgentMessage)
shouldStartNewBatch
in interface BambooAgentMessageBatch<AbstractAddLogEntry>
public boolean isExpensive()
BambooAgentMessageBatch
isExpensive
in interface BambooAgentMessageBatch<AbstractAddLogEntry>
public static BambooAgentMessageBatch.BatchFactory descriptor()
public int getDeserialiserId()
getDeserialiserId
in interface SelfSerialisingMessage
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.