Class NexusTaskHandlerImpl
java.lang.Object
io.temporal.internal.nexus.NexusTaskHandlerImpl
- All Implemented Interfaces:
NexusTaskHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.temporal.internal.worker.NexusTaskHandler
NexusTaskHandler.Result -
Constructor Summary
ConstructorsConstructorDescriptionNexusTaskHandlerImpl(WorkflowClient client, String namespace, String taskQueue, DataConverter dataConverter, WorkerInterceptor[] interceptors) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidregisterNexusServiceImplementations(Object[] nexusServiceImplementation) shutdown(ShutdownManager shutdownManager, boolean unused) booleanstart()Start the handler if the handler has any registered services.
-
Constructor Details
-
NexusTaskHandlerImpl
public NexusTaskHandlerImpl(@Nonnull WorkflowClient client, @Nonnull String namespace, @Nonnull String taskQueue, @Nonnull DataConverter dataConverter, @Nonnull WorkerInterceptor[] interceptors)
-
-
Method Details
-
isAnyTypeSupported
public boolean isAnyTypeSupported() -
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 TimeoutException - Specified by:
handlein interfaceNexusTaskHandler- Throws:
TimeoutException
-
registerNexusServiceImplementations
-
shutdown
-