-
Notifications
You must be signed in to change notification settings - Fork 175
Update Java SDK #705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Java SDK #705
Conversation
| updateResult = | ||
| WorkflowClient.executeUpdateWithStart( | ||
| workflow::returnInitResult, | ||
| UpdateOptions.<TxResult>newBuilder().build(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much cleaner implementation!
| } | ||
|
|
||
| @Override | ||
| public NexusOperationInboundCallsInterceptor interceptNexusOperation( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The "correct" solution is these samples should be SimpleCountWorkerInterceptor extends BaseWorkerInterceptor
| import io.temporal.internal.sync.BaseRootWorkflowInboundCallsInterceptor; | ||
|
|
||
| public class SimpleCountWorkerInterceptor implements WorkerInterceptor { | ||
| public class SimpleCountWorkerInterceptor extends WorkerInterceptorBase { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To provide a base implementation for Nexus.
| .newWorkflowStub( | ||
| ClusterManagerWorkflow.class, | ||
| WorkflowOptions.newBuilder().setTaskQueue(testWorkflowRule.getTaskQueue()).build()); | ||
| CompletableFuture<ClusterManagerWorkflow.ClusterManagerResult> result = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got an error for an unused variable 🤷
steveandroulakis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Early return client code updates look good
| updateResult = | ||
| WorkflowClient.executeUpdateWithStart( | ||
| workflow::returnInitResult, | ||
| UpdateOptions.<TxResult>newBuilder().build(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much cleaner implementation!
What was changed
Updated Java SDK to pull in new Update-with-Start API.