Interface ITopicSubscriptionPromise
interface ITopicSubscriptionPromise
Extends com.amazon.apmf.IStandard
Interface that describes the response promise of subscribeToTopicAsync/unsubscribeFromTopicAsync calls
Methods
isPending()
bool isPending()
Check whether this promise is pending.
Returns
bool
A boolean value to indicate whether this promise is pending
getValue()
void getValue()
Gets the response value of the promise object. This is a blocking call until Promise is
resolved/rejected.
In a successful case there is no return value.
Throws
IError— if the Promise is rejected
getError()
Waits until the promise is resolved and return the error if it exists or null otherwise.com.amazon.apmf.IError?getError()
Returns
com.amazon.apmf.IError?
The return value is optional and might be absent.
An IError object

