Class QueueSize

java.lang.Object
org.apache.nifi.controller.queue.QueueSize

public class QueueSize extends Object
  • Field Details

    • objectCount

      private final int objectCount
    • totalSizeBytes

      private final long totalSizeBytes
    • hashCode

      private final int hashCode
  • Constructor Details

    • QueueSize

      public QueueSize(int numberObjects, long totalSizeBytes)
  • Method Details

    • getObjectCount

      public int getObjectCount()
      Returns:
      number of objects present on the queue
    • getByteCount

      public long getByteCount()
      Returns:
      total size in bytes of the content for the data on the queue
    • add

      public QueueSize add(QueueSize other)
      Returns a new QueueSize that is the sum of this QueueSize and the provided QueueSize
      Parameters:
      other - the other QueueSize to add to this QueueSize
      Returns:
      a new QueueSize that is the sum of this QueueSize and the provided QueueSize
    • add

      public QueueSize add(int count, long bytes)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object