Skip to main content

Client

View as Markdown

This page lists the Java SDK names for the Client. The doc comment of each API gives its parameters, defaults, and errors. Read them in the Java SDK API reference.

API names​

TaskJava APIDex behavior
Create a ClientClient, from a Registry and a BlobCache, with ClientOptionsClient requests
Start a FlowstartFlow, with StartFlowOptionsStart a Flow
Invoke an RPCinvokeRPC, on a stub from newRpcStubInvoke an RPC
Read AttributesgetAttributesRead Attributes
Wait for a Flow to closewaitForFlowWait for a Flow
Wait for a Step execution to completewaitForStepCompletion, with WaitForStepCompletionOptionsWait for a Step
Wait until an Attribute matcheswaitForAttributeMatch, with WaitForAttributeOptionsWait for an Attribute match
Describe a FlowdescribeFlowDescribe a Flow
Search FlowssearchFlowsSearch Flows
Stop a FlowstopFlow, with StopFlowOptionsStop a Flow
Skip a TimerskipTimerSkip a Timer
Update FlowConfigupdateFlowConfigUpdate FlowConfig
Write and read a StreamwriteStream, readStream, and listStreamMessagesStream
Upload Flow definitionsuploadFlowDefinitions, with FlowDefinitionDocument; returns FlowDefinitionUploadResult values. Since 1.45.0Flow definitions
Time travel a FlowtimeTravel, with TimeTravelOptionsTime travel
Handle a failed requestDexServiceException, with ErrorSubStatusClient requests

Every network method of Client blocks the calling thread until the request completes. Create one Client and reuse it across calls. Client is AutoCloseable. Closing it does not close the BlobCache.

Example​

Example: examples/java/src/main/java/io/superdurable/dex/primitives/clientapis/ClientApisController.java