java.lang.Object
com.github.eventmanager.outputs.Batch

public class Batch extends Object
Represents a batch of strings that can be added to. Used to batch strings together before sending them to an output.
  • Constructor Details

    • Batch

      public Batch(int maxBytes)
  • Method Details

    • tryAdd

      public boolean tryAdd(String s)
    • clearBatch

      public void clearBatch()
    • getCurrentSizeInBytes

      public int getCurrentSizeInBytes()