Class ClientTask<T>

  • Type Parameters:
    T - type of the value returned by the wrapped task.

    public class ClientTask<T>
    extends Object
    Synchronous safe execution of a client task. Motto: Their failure is not our failure.

    I think it is ok to permit this executor pool to get very large: it is used only for Core callbacks that run client code and. There should not, therefore, be more threads here than there are Core threads (the Core thread is suspended until this task completes). That means that it shouldn't, actually, get all that big.

    • Constructor Detail

      • ClientTask

        public ClientTask​(@NonNull
                          Callable<T> task)
    • Method Detail

      • dumpState

        public static void dumpState()
      • execute

        public void execute()
      • execute

        public void execute​(long timeout,
                            @NonNull
                            TimeUnit timeUnit)
      • getResult

        @Nullable
        public T getResult()
      • getFailure

        @Nullable
        public Exception getFailure()