Interface LocalActivityDispatcher


  • public interface LocalActivityDispatcher
    • Method Detail

      • dispatch

        boolean dispatch​(@Nonnull
                         ExecuteLocalActivityParameters params,
                         @Nonnull
                         Functions.Proc1<LocalActivityResult> resultCallback,
                         @Nullable
                         io.grpc.Deadline acceptanceDeadline)
        Synchronously dispatches the local activity to the local activity worker.
        Returns:
        true if the local activity was accepted, false if it was rejected
        Throws:
        java.lang.IllegalStateException - if the local activity worker was not started
        java.lang.IllegalArgumentException - if the local activity type is not supported