Record Class TransportStatus
java.lang.Object
java.lang.Record
org.j7m.middleware.api.TransportStatus
- Record Components:
transportId- transport identifierendpoint- endpoint addressrunning- whether endpoint accepts work
-
Constructor Summary
ConstructorsConstructorDescriptionTransportStatus(String transportId, String endpoint, boolean running) Creates an instance of aTransportStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionendpoint()Returns the value of theendpointrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanrunning()Returns the value of therunningrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransportIdrecord component.
-
Constructor Details
-
TransportStatus
Creates an instance of aTransportStatusrecord class.- Parameters:
transportId- the value for thetransportIdrecord componentendpoint- the value for theendpointrecord componentrunning- the value for therunningrecord 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. -
transportId
Returns the value of thetransportIdrecord component.- Returns:
- the value of the
transportIdrecord component
-
endpoint
-
running
-