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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.atlassian.bamboo.v2.build.agent.messages.BambooAgentMessageBatch
BambooAgentMessageBatch.BatchFactory
-
-
Constructor Summary
Constructors Constructor Description LogMessageBatch()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.v2.build.agent.messages.BambooAgentMessage
shouldBeSentDuringHeartAttack
-
-
-
-
Method Detail
-
deliver
@Nullable public @Nullable Object deliver()
Description copied from interface:BambooAgentMessage
Delivers the message to the appropriate object in the local virtual machine.- Specified by:
deliver
in interfaceBambooAgentMessage
- Returns:
- an optional reply to message (including error-reporting messages)
-
add
public void add(@NotNull @NotNull AbstractAddLogEntry abstractAddLogEntry)
- Specified by:
add
in interfaceBambooAgentMessageBatch<AbstractAddLogEntry>
-
getNeedToPersistOnTarget
@Nullable public @Nullable Boolean getNeedToPersistOnTarget()
-
drainMessages
@NotNull public @NotNull Queue<AbstractAddLogEntry> drainMessages()
-
size
public int size()
- Specified by:
size
in interfaceBambooAgentMessageBatch<AbstractAddLogEntry>
-
shouldStartNewBatch
public boolean shouldStartNewBatch(@NotNull @NotNull BambooAgentMessage bambooAgentMessage)
- Specified by:
shouldStartNewBatch
in interfaceBambooAgentMessageBatch<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 interfaceBambooAgentMessageBatch<AbstractAddLogEntry>
-
descriptor
public static BambooAgentMessageBatch.BatchFactory descriptor()
-
getDeserialiserId
public int getDeserialiserId()
- Specified by:
getDeserialiserId
in interfaceSelfSerialisingMessage
-
-