Package org.apache.nifi.controller.queue
Class QueueSize
java.lang.Object
org.apache.nifi.controller.queue.QueueSize
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final int
private final long
-
Constructor Summary
Constructors -
Method Summary
-
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
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
-
toString
-
hashCode
public int hashCode() -
equals
-