Record Class WeatherCapture.Status
java.lang.Object
java.lang.Record
ecmwf.ecpds.master.weather.WeatherCapture.Status
- Enclosing class:
WeatherCapture
public static record WeatherCapture.Status(long rejected, long omittedSockets, long invalidSockets, long contention, WeatherOutbox.Status outbox)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionStatus(long rejected, long omittedSockets, long invalidSockets, long contention, WeatherOutbox.Status outbox) Creates an instance of aStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecontentionrecord 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 theinvalidSocketsrecord component.longReturns the value of theomittedSocketsrecord component.outbox()Returns the value of theoutboxrecord component.longrejected()Returns the value of therejectedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Status
public Status(long rejected, long omittedSockets, long invalidSockets, long contention, WeatherOutbox.Status outbox) Creates an instance of aStatusrecord class.- Parameters:
rejected- the value for therejectedrecord componentomittedSockets- the value for theomittedSocketsrecord componentinvalidSockets- the value for theinvalidSocketsrecord componentcontention- the value for thecontentionrecord componentoutbox- the value for theoutboxrecord 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. -
rejected
public long rejected()Returns the value of therejectedrecord component.- Returns:
- the value of the
rejectedrecord component
-
omittedSockets
public long omittedSockets()Returns the value of theomittedSocketsrecord component.- Returns:
- the value of the
omittedSocketsrecord component
-
invalidSockets
public long invalidSockets()Returns the value of theinvalidSocketsrecord component.- Returns:
- the value of the
invalidSocketsrecord component
-
contention
public long contention()Returns the value of thecontentionrecord component.- Returns:
- the value of the
contentionrecord component
-
outbox
Returns the value of theoutboxrecord component.- Returns:
- the value of the
outboxrecord component
-