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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.bamboo.v2.build.agent.messages.BambooAgentMessageBatch
BambooAgentMessageBatch.BatchFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(@NotNull AbstractAddLogEntry abstractAddLogEntry) @Nullable Object
deliver()
Delivers the message to the appropriate object in the local virtual machine.@NotNull Queue<AbstractAddLogEntry>
int
@Nullable Boolean
boolean
If true, the batch is going to be expensive to process.boolean
shouldStartNewBatch
(@NotNull BambooAgentMessage bambooAgentMessage) int
size()
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
-
Constructor Details
-
LogMessageBatch
public LogMessageBatch()
-
-
Method Details
-
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
- Specified by:
add
in interfaceBambooAgentMessageBatch<AbstractAddLogEntry>
-
getLoggerId
-
getNeedToPersistOnTarget
-
drainMessages
-
size
public int size()- Specified by:
size
in interfaceBambooAgentMessageBatch<AbstractAddLogEntry>
-
shouldStartNewBatch
- 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
-
getDeserialiserId
public int getDeserialiserId()- Specified by:
getDeserialiserId
in interfaceSelfSerialisingMessage
-
toString
-