Package io.temporal.internal.worker
Interface NexusTaskHandler
-
- All Known Implementing Classes:
NexusTaskHandlerImpl
public interface NexusTaskHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classNexusTaskHandler.Result
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NexusTaskHandler.Resulthandle(NexusTask task, com.uber.m3.tally.Scope metricsScope)booleanstart()Start the handler if the handler has any registered services.
-
-
-
Method Detail
-
start
boolean start()
Start the handler if the handler has any registered services. It is an error to start a handler more than once.- Returns:
- True if this handler can handle at least one nexus service.
-
handle
NexusTaskHandler.Result handle(NexusTask task, com.uber.m3.tally.Scope metricsScope) throws java.util.concurrent.TimeoutException
- Throws:
java.util.concurrent.TimeoutException
-
-