Interface IAsyncReadCallback<T>

Type Parameters:
T - the type of result returned by the callback

public interface IAsyncReadCallback<T>
This interface is deprecated and related methods will be replaced by methods using CompletableFuture in the future. Related methods will be kept and mark deprecated. You can run your original IAsyncReadCallback callbacks using CompletableFuture.thenAcceptAsync(Consumer, java.util.concurrent.Executor), don't forget to check whether the accepted value is null or not. If you want to invoke callback not on the main thread, use the callback executor from the data controller. If you want to invoke callback on the main thread, see ThreadUtils.getMainThreadExecutor() or ThreadUtils.getMainDelayedExecutor().
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    onResult(T result)
     
    default void
     
    default boolean
     
  • Method Details

    • runOnMainThread

      default boolean runOnMainThread()
    • onResult

      default void onResult(T result)
    • onResultNotFound

      default void onResultNotFound()