Interface LocalActivityDispatcher
public interface LocalActivityDispatcher
-
Method Summary
Modifier and TypeMethodDescriptionbooleandispatch(ExecuteLocalActivityParameters params, Functions.Proc1<LocalActivityResult> resultCallback, io.grpc.Deadline acceptanceDeadline) Synchronously dispatches the local activity to the local activity worker.
-
Method Details
-
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:
IllegalStateException- if the local activity worker was not startedIllegalArgumentException- if the local activity type is not supported
-