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 Details
-
async
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.- Throws:
UnsupportedOperationException- If async is called more than once.- Since:
- 4.0.0, CE 2019.1
-