Interface UntypedNexusServiceClient
- All Known Subinterfaces:
NexusServiceClient<T>
Untyped client for invoking standalone Nexus operations by operation-name string. Use this when
the operation contract is not available as a Java service interface at compile time. For a typed
variant, see
NexusServiceClient.- See Also:
-
Method Summary
Modifier and TypeMethodDescription<R> Rexecute(String operation, Class<R> resultClass, StartNexusOperationOptions options, Object arg) Executes a Nexus operation synchronously by name, blocking until it completes.<R> Rexecute(String operation, Class<R> resultClass, Type resultType, StartNexusOperationOptions options, Object arg) Executes a Nexus operation synchronously by name with an explicit generic-resultType.start(String operation, StartNexusOperationOptions options, Object arg) Starts a Nexus operation by name and returns an untyped handle for tracking its execution.
-
Method Details
-
start
UntypedNexusOperationHandle start(String operation, StartNexusOperationOptions options, @Nullable Object arg) Starts a Nexus operation by name and returns an untyped handle for tracking its execution.- Parameters:
operation- the operation name as registered on the serviceoptions- per-call options controlling timeouts, search attributes, etc.arg- the operation input; may benull- Returns:
- an untyped handle bound to the started operation
-
execute
<R> R execute(String operation, Class<R> resultClass, StartNexusOperationOptions options, @Nullable Object arg) Executes a Nexus operation synchronously by name, blocking until it completes.- Parameters:
operation- the operation name as registered on the serviceresultClass- the class to deserialize the result intooptions- per-call options controlling timeouts, search attributes, etc.arg- the operation input; may benull- Returns:
- the deserialized operation result
- Throws:
NexusOperationException- if the operation failed, timed out, or was cancelled
-
execute
<R> R execute(String operation, Class<R> resultClass, Type resultType, StartNexusOperationOptions options, @Nullable Object arg) Executes a Nexus operation synchronously by name with an explicit generic-resultType. Use this overload when the result is a generic type whose parameters cannot be captured byClassalone (e.g.List<String>).- Parameters:
operation- the operation name as registered on the serviceresultClass- the class to deserialize the result intoresultType- the generic type to use for deserializationoptions- per-call options controlling timeouts, search attributes, etc.arg- the operation input; may benull- Returns:
- the deserialized operation result
- Throws:
NexusOperationException- if the operation failed, timed out, or was cancelled
-