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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(@NotNull AbstractAddLogEntry abstractAddLogEntry) @Nullable Objectdeliver()Delivers the message to the appropriate object in the local virtual machine.@NotNull Queue<AbstractAddLogEntry>int@Nullable BooleanbooleanIf true, the batch is going to be expensive to process.booleanshouldStartNewBatch(@NotNull BambooAgentMessage bambooAgentMessage) intsize()toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.v2.build.agent.messages.BambooAgentMessage
shouldBeSentDuringHeartAttack
-
Constructor Details
-
LogMessageBatch
public LogMessageBatch()
-
-
Method Details
-
deliver
Description copied from interface:BambooAgentMessageDelivers the message to the appropriate object in the local virtual machine.- Specified by:
deliverin interfaceBambooAgentMessage- Returns:
- an optional reply to message (including error-reporting messages)
-
add
- Specified by:
addin interfaceBambooAgentMessageBatch<AbstractAddLogEntry>
-
getLoggerId
-
getNeedToPersistOnTarget
-
drainMessages
-
size
public int size()- Specified by:
sizein interfaceBambooAgentMessageBatch<AbstractAddLogEntry>
-
shouldStartNewBatch
- Specified by:
shouldStartNewBatchin interfaceBambooAgentMessageBatch<AbstractAddLogEntry>
-
isExpensive
public boolean isExpensive()Description copied from interface:BambooAgentMessageBatchIf true, the batch is going to be expensive to process.- Specified by:
isExpensivein interfaceBambooAgentMessageBatch<AbstractAddLogEntry>
-
descriptor
-
getDeserialiserId
public int getDeserialiserId()- Specified by:
getDeserialiserIdin interfaceSelfSerialisingMessage
-
toString
-