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