Package software.amazon.awssdk.crt
Interface AsyncCallback
-
public interface AsyncCallbackAsync io completion abstraction used by the native mqtt layer. We moved to using futures directly but that might have been a mistake and we should consider moving back to this for our other async operations that cross the managed/native boundary
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonFailure(Throwable reason)voidonSuccess()voidonSuccess(Object value)static <T> AsyncCallbackwrapFuture(CompletableFuture<T> future, T value)
-
-
-
Method Detail
-
wrapFuture
static <T> AsyncCallback wrapFuture(CompletableFuture<T> future, T value)
-
onSuccess
void onSuccess()
-
onSuccess
void onSuccess(Object value)
-
onFailure
void onFailure(Throwable reason)
-
-