Class NexusClientOptions
java.lang.Object
io.temporal.client.NexusClientOptions
Options that configure a
NexusClient (and the service-bound clients it produces).
Carries only client-wide settings (namespace, data converter, interceptors). Per-call settings
— operation ID, timeouts, search attributes, summary, id-reuse/conflict policies — belong on
StartNexusOperationOptions.
Obtain a builder via newBuilder() or copy an existing instance via newBuilder(NexusClientOptions). The default instance (getDefaultInstance()) targets
the "default" namespace and uses the GlobalDataConverter.
NexusClientOptions options =
NexusClientOptions.newBuilder()
.setNamespace("default")
.setDataConverter(myDataConverter)
.build();
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionGet the data converter used to serialize Nexus operation inputs and deserialize results.static NexusClientOptionsReturns an options instance with all defaults.Get the external storage used to offload large operation payloads, or null if payloads are sent inline.Human-readable identity of this client.Get the interceptors of this client.Get the namespace this client will operate on.static NexusClientOptions.BuilderReturns a fresh builder.static NexusClientOptions.BuildernewBuilder(NexusClientOptions options) Returns a builder seeded with the values fromoptions.
-
Method Details
-
getNamespace
Get the namespace this client will operate on. -
getInterceptors
Get the interceptors of this client. -
getDataConverter
Get the data converter used to serialize Nexus operation inputs and deserialize results. -
getExternalStorage
Get the external storage used to offload large operation payloads, or null if payloads are sent inline. -
getIdentity
Human-readable identity of this client. Stamped onto outgoing write requests (start, cancel, terminate) so server-side history and audit trails can attribute the action to a caller. -
newBuilder
Returns a fresh builder. -
newBuilder
Returns a builder seeded with the values fromoptions. -
getDefaultInstance
Returns an options instance with all defaults. The namespace defaults to"default"; set it explicitly viaNexusClientOptions.Builder.setNamespace(String)to target a different namespace.
-