Record Class MQTTPublishResult
java.lang.Object
java.lang.Record
ecmwf.ecpds.mover.MQTTPublishResult
- All Implemented Interfaces:
Serializable
public record MQTTPublishResult(String status, String reason)
extends Record
implements Serializable
Broker processing outcome, never an acknowledgement from a subscriber.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMQTTPublishResult(String status, String reason) Creates an instance of aMQTTPublishResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic MQTTPublishResultawait(CompletionStage<Void> completion, long timeoutMillis) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.reason()Returns the value of thereasonrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.static booleanunsupportedMethod(Throwable error) Only an unsupported-method dispatch error is safe to fall back from without risking a duplicate publish.
-
Constructor Details
-
MQTTPublishResult
-
-
Method Details
-
unsupportedMethod
Only an unsupported-method dispatch error is safe to fall back from without risking a duplicate publish. -
await
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-