Package com.axelor.db.audit
Record Class AuditQueue.QueueStats
java.lang.Object
java.lang.Record
com.axelor.db.audit.AuditQueue.QueueStats
- Enclosing interface:
AuditQueue
public static record AuditQueue.QueueStats(int pending, long completed, boolean isActive, long failure)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionQueueStats(int pending, long completed, boolean isActive, long failure) Creates an instance of aQueueStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecompletedrecord component.final booleanIndicates whether some other object is "equal to" this one.longfailure()Returns the value of thefailurerecord component.final inthashCode()Returns a hash code value for this object.booleanisActive()Returns the value of theisActiverecord component.intpending()Returns the value of thependingrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
QueueStats
public QueueStats(int pending, long completed, boolean isActive, long failure) Creates an instance of aQueueStatsrecord class.- Parameters:
pending- the value for thependingrecord componentcompleted- the value for thecompletedrecord componentisActive- the value for theisActiverecord componentfailure- the value for thefailurerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
pending
public int pending()Returns the value of thependingrecord component.- Returns:
- the value of the
pendingrecord component
-
completed
public long completed()Returns the value of thecompletedrecord component.- Returns:
- the value of the
completedrecord component
-
isActive
public boolean isActive()Returns the value of theisActiverecord component.- Returns:
- the value of the
isActiverecord component
-
failure
public long failure()Returns the value of thefailurerecord component.- Returns:
- the value of the
failurerecord component
-