Interface CheckedSuspendableCallable<V,​E extends java.lang.Exception>

  • Type Parameters:
    V - The value being returned.
    E - The user exception type being thrown.
    All Superinterfaces:
    java.io.Serializable

    public interface CheckedSuspendableCallable<V,​E extends java.lang.Exception>
    extends java.io.Serializable
    This interface can represent any operation that may suspend the currently executing Strand (i.e. thread or fiber). Unlike SuspendableRunnable, the operation represented by this interface returns a result. This is just like a Callable, only suspendable.
    • Method Detail

      • call

        V call()
        throws SuspendExecution,
               java.lang.InterruptedException,
               E extends java.lang.Exception
        Throws:
        SuspendExecution
        java.lang.InterruptedException
        E extends java.lang.Exception