Record Class WeatherPersistence.Status
java.lang.Object
java.lang.Record
ecmwf.ecpds.master.weather.WeatherPersistence.Status
- All Implemented Interfaces:
Serializable
- Enclosing class:
WeatherPersistence
public static record WeatherPersistence.Status(boolean ready, String error, WeatherOutbox.Status queue, long writtenEvents, long retentionGaps, long transactionFailures)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStatus(boolean ready, String error, WeatherOutbox.Status queue, long writtenEvents, long retentionGaps, long transactionFailures) Creates an instance of aStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.queue()Returns the value of thequeuerecord component.booleanready()Returns the value of thereadyrecord component.longReturns the value of theretentionGapsrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetransactionFailuresrecord component.longReturns the value of thewrittenEventsrecord component.
-
Constructor Details
-
Status
public Status(boolean ready, String error, WeatherOutbox.Status queue, long writtenEvents, long retentionGaps, long transactionFailures) Creates an instance of aStatusrecord class.- Parameters:
ready- the value for thereadyrecord componenterror- the value for theerrorrecord componentqueue- the value for thequeuerecord componentwrittenEvents- the value for thewrittenEventsrecord componentretentionGaps- the value for theretentionGapsrecord componenttransactionFailures- the value for thetransactionFailuresrecord 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. -
ready
public boolean ready()Returns the value of thereadyrecord component.- Returns:
- the value of the
readyrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
queue
Returns the value of thequeuerecord component.- Returns:
- the value of the
queuerecord component
-
writtenEvents
public long writtenEvents()Returns the value of thewrittenEventsrecord component.- Returns:
- the value of the
writtenEventsrecord component
-
retentionGaps
public long retentionGaps()Returns the value of theretentionGapsrecord component.- Returns:
- the value of the
retentionGapsrecord component
-
transactionFailures
public long transactionFailures()Returns the value of thetransactionFailuresrecord component.- Returns:
- the value of the
transactionFailuresrecord component
-