Package io.temporal.internal.nexus
Class NexusTaskHandlerImpl
- java.lang.Object
-
- io.temporal.internal.nexus.NexusTaskHandlerImpl
-
- All Implemented Interfaces:
NexusTaskHandler
public class NexusTaskHandlerImpl extends java.lang.Object implements NexusTaskHandler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.temporal.internal.worker.NexusTaskHandler
NexusTaskHandler.Result
-
-
Constructor Summary
Constructors Constructor Description NexusTaskHandlerImpl(WorkflowClient client, java.lang.String namespace, java.lang.String taskQueue, DataConverter dataConverter, WorkerInterceptor[] interceptors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NexusTaskHandler.Resulthandle(NexusTask task, com.uber.m3.tally.Scope metricsScope)voidregisterNexusServiceImplementations(java.lang.Object[] nexusServiceImplementation)java.util.concurrent.CompletionStage<java.lang.Void>shutdown(ShutdownManager shutdownManager, boolean unused)booleanstart()Start the handler if the handler has any registered services.
-
-
-
Constructor Detail
-
NexusTaskHandlerImpl
public NexusTaskHandlerImpl(@Nonnull WorkflowClient client, @Nonnull java.lang.String namespace, @Nonnull java.lang.String taskQueue, @Nonnull DataConverter dataConverter, @Nonnull WorkerInterceptor[] interceptors)
-
-
Method Detail
-
start
public boolean start()
Description copied from interface:NexusTaskHandlerStart the handler if the handler has any registered services. It is an error to start a handler more than once.- Specified by:
startin interfaceNexusTaskHandler- Returns:
- True if this handler can handle at least one nexus service.
-
handle
public NexusTaskHandler.Result handle(NexusTask task, com.uber.m3.tally.Scope metricsScope) throws java.util.concurrent.TimeoutException
- Specified by:
handlein interfaceNexusTaskHandler- Throws:
java.util.concurrent.TimeoutException
-
registerNexusServiceImplementations
public void registerNexusServiceImplementations(java.lang.Object[] nexusServiceImplementation)
-
shutdown
public java.util.concurrent.CompletionStage<java.lang.Void> shutdown(ShutdownManager shutdownManager, boolean unused)
-
-