Skip to content
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

Allow aliased client to pass along options when submitting traversals #97

Closed
wants to merge 1 commit into from

Conversation

ryn5
Copy link

@ryn5 ryn5 commented Feb 29, 2024

https://issues.apache.org/jira/browse/TINKERPOP-3039
Changed getRequestOptions to public so that Client.submitAsync can get and pass along options.

@ryn5 ryn5 changed the title Allow aliased client to pass along options when submitting traversals [Draft] Allow aliased client to pass along options when submitting traversals Feb 29, 2024
@ryn5 ryn5 force-pushed the ryan/aliased-client branch from 7112ebb to 9f5d222 Compare March 8, 2024 04:45
@ryn5 ryn5 changed the title [Draft] Allow aliased client to pass along options when submitting traversals Allow aliased client to pass along options when submitting traversals Mar 8, 2024
@@ -642,7 +642,7 @@ public static class AliasClusteredClient extends Client {

@Override
public CompletableFuture<ResultSet> submitAsync(final Bytecode bytecode) {
return submitAsync(bytecode, RequestOptions.EMPTY);
return submitAsync(bytecode, DriverRemoteConnection.getRequestOptions(bytecode));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if the "getRequestOptions" method should be extracted out of the DRC class now that it's also being used by the Client. It feels weird to have Client depend on DRC...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved getRequestOptions to a new static subclass ClientUtil in Client.java to remove dependency.

@ryn5 ryn5 force-pushed the ryan/aliased-client branch from 3532289 to def3cc4 Compare March 12, 2024 04:20
@vkagamlyk
Copy link

VOTE+1

@Cole-Greer
Copy link

LGTM

@ryn5 ryn5 force-pushed the ryan/aliased-client branch 2 times, most recently from 1ce60c9 to 6ee0e26 Compare March 25, 2024 19:12
@ryn5 ryn5 force-pushed the ryan/aliased-client branch from 088de62 to 056aad8 Compare March 25, 2024 20:37
@ryn5 ryn5 closed this Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants