Record Class AuditStatus
java.lang.Object
java.lang.Record
io.leandev.appfuse.audit.AuditStatus
-
Constructor Summary
ConstructorsConstructorDescriptionAuditStatus(boolean enabled, boolean accepting, String state, int queued, boolean inFlight, boolean quarantined, Map<String, Long> counters) Creates an instance of aAuditStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theacceptingrecord component.counters()Returns the value of thecountersrecord component.booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleaninFlight()Returns the value of theinFlightrecord component.booleanReturns the value of thequarantinedrecord component.intqueued()Returns the value of thequeuedrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AuditStatus
public AuditStatus(boolean enabled, boolean accepting, String state, int queued, boolean inFlight, boolean quarantined, Map<String, Long> counters) Creates an instance of aAuditStatusrecord class.- Parameters:
enabled- the value for theenabledrecord componentaccepting- the value for theacceptingrecord componentstate- the value for thestaterecord componentqueued- the value for thequeuedrecord componentinFlight- the value for theinFlightrecord componentquarantined- the value for thequarantinedrecord componentcounters- the value for thecountersrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
accepting
public boolean accepting()Returns the value of theacceptingrecord component.- Returns:
- the value of the
acceptingrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
queued
public int queued()Returns the value of thequeuedrecord component.- Returns:
- the value of the
queuedrecord component
-
inFlight
public boolean inFlight()Returns the value of theinFlightrecord component.- Returns:
- the value of the
inFlightrecord component
-
quarantined
public boolean quarantined()Returns the value of thequarantinedrecord component.- Returns:
- the value of the
quarantinedrecord component
-
counters
-