Package software.amazon.awssdk.crt
Interface AsyncCallback
-
public interface AsyncCallback
Async 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 void
onFailure(Throwable reason)
void
onSuccess()
void
onSuccess(Object value)
static <T> AsyncCallback
wrapFuture(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)
-
-