Interface ReceiveResult
- All Known Implementing Classes:
ReceiveResult.Ended, ReceiveResult.Received, ReceiveResult.TimedOut
public sealed interface ReceiveResult
permits ReceiveResult.Received, ReceiveResult.TimedOut, ReceiveResult.Ended
The outcome of one pull receive. A timeout leaves the subscription active; normal
termination ends it permanently. Connection termination leaves receiving subscriptions
waiting for a later connection. Failures that end the subscription, and interruption, are
thrown by
PullSubscription.receive(), which lists them.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordThe subscription ended through its close, a successful unsubscribe once the deliveries it accepted have been received, orMqttClient.close().static final recordOne delivery handed to this caller.static final recordNo delivery became available before the wait expired.