Package io.temporal.internal.worker
Interface LocalActivityDispatcher
-
public interface LocalActivityDispatcher
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleandispatch(ExecuteLocalActivityParameters params, Functions.Proc1<LocalActivityResult> resultCallback, io.grpc.Deadline acceptanceDeadline)Synchronously dispatches the local activity to the local activity worker.
-
-
-
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 startedjava.lang.IllegalArgumentException- if the local activity type is not supported
-
-