-
Notifications
You must be signed in to change notification settings - Fork 148
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
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!
@@ -34,4 +36,10 @@ public WorkflowInboundCallsInterceptor interceptWorkflow(WorkflowInboundCallsInt | |||
public ActivityInboundCallsInterceptor interceptActivity(ActivityInboundCallsInterceptor next) { | |||
return new SimpleCountActivityInboundCallsInterceptor(next); | |||
} | |||
|
|||
@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
|
||
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.
@@ -105,9 +105,8 @@ public void testUpdateIdempotency() { | |||
.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 🤷
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.