Interface SimpleAsyncOutput<T>
-
- All Known Subinterfaces:
AsyncOutput<T>
,ConnackOutboundOutput
,ConnectInboundOutput
,DisconnectInboundOutput
,DisconnectOutboundOutput
,EnhancedAuthOutput
,PingReqInboundOutput
,PingRespOutboundOutput
,PubackInboundOutput
,PubackOutboundOutput
,PubcompInboundOutput
,PubcompOutboundOutput
,PublishAuthorizerOutput
,PublishInboundOutput
,PublishOutboundOutput
,PubrecInboundOutput
,PubrecOutboundOutput
,PubrelInboundOutput
,PubrelOutboundOutput
,SimpleAuthOutput
,SubackOutboundOutput
,SubscribeInboundOutput
,SubscriptionAuthorizerOutput
,UnsubackOutboundOutput
,UnsubscribeInboundOutput
@DoNotImplement public interface SimpleAsyncOutput<T>
Enables an output object to be processed in a non-blocking way.- Since:
- 4.3.0, CE 2020.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull Async<T>
async(@NotNull Duration timeout)
If the timeout is expired beforeAsync.resume()
is called then the outcome is handled as failed.
-
-
-
Method Detail
-
async
@NotNull Async<T> async(@NotNull Duration timeout)
If the timeout is expired beforeAsync.resume()
is called then the outcome is handled as failed.Do not call this method more than once. If an async method is called multiple times an exception is thrown.
- Parameters:
timeout
- Timeout that HiveMQ waits for the result of the async operation.- Returns:
- An
Async
object, usually containing the output object. - Throws:
UnsupportedOperationException
- If async is called more than once.- Since:
- 4.0.0, CE 2019.1
-
-