Class AppendEvents.Metric

java.lang.Object
io.fluxzero.common.api.eventsourcing.AppendEvents.Metric
Enclosing class:
AppendEvents

public static class AppendEvents.Metric extends Object
Compact metric representation of an AppendEvents command.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    The total number of bytes in the data across all messages within all batches.
    int
    The size of the metric, representing the number of events within all batches.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Metric

      public Metric()
  • Method Details

    • getSize

      public int getSize()
      The size of the metric, representing the number of events within all batches.
    • getBytes

      public long getBytes()
      The total number of bytes in the data across all messages within all batches.