Record Class WeatherSourceRegistry.Status
java.lang.Object
java.lang.Record
ecmwf.ecpds.master.weather.WeatherSourceRegistry.Status
- All Implemented Interfaces:
Serializable
- Enclosing class:
WeatherSourceRegistry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondetail()Returns the value of thedetailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theroundTripMsrecord component.Returns the value of thesourceEpochrecord component.sourceId()Returns the value of thesourceIdrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of theverifiedAtrecord component.
-
Constructor Details
-
Status
public Status(String sourceId, String state, UUID sourceEpoch, long verifiedAt, long roundTripMs, String detail) Creates an instance of aStatusrecord class.- Parameters:
sourceId- the value for thesourceIdrecord componentstate- the value for thestaterecord componentsourceEpoch- the value for thesourceEpochrecord componentverifiedAt- the value for theverifiedAtrecord componentroundTripMs- the value for theroundTripMsrecord componentdetail- the value for thedetailrecord 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. -
sourceId
Returns the value of thesourceIdrecord component.- Returns:
- the value of the
sourceIdrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
sourceEpoch
Returns the value of thesourceEpochrecord component.- Returns:
- the value of the
sourceEpochrecord component
-
verifiedAt
public long verifiedAt()Returns the value of theverifiedAtrecord component.- Returns:
- the value of the
verifiedAtrecord component
-
roundTripMs
public long roundTripMs()Returns the value of theroundTripMsrecord component.- Returns:
- the value of the
roundTripMsrecord component
-
detail
Returns the value of thedetailrecord component.- Returns:
- the value of the
detailrecord component
-