-
Notifications
You must be signed in to change notification settings - Fork 916
Add config class for SplittingTransformer #4939
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
Conversation
} | ||
|
||
/** | ||
* Create a {@link FileRequestBodyConfiguration.Builder}, used to create a {@link SplitTransformerConfiguration}. |
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.
Why does this mention FileRequestBodyConfiguration
?
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.
oops missed deleting that
/** | ||
* Configuration options for {@link AsyncResponseTransformer#split(SplitTransformerConfiguration)} to configure how the SDK | ||
* should split the {@link AsyncResponseTransformer}. | ||
* |
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.
This description makes me think the name is not quite right. "to configure how the SDK should split..." sounds like it's configuration for the splitting transformer (the one we're calling split
on), but the name makes it sound like it's for the SplitAsyncResponseTransformer
, which is the result of the split
.
@zoewangg WDYT?
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.
right, its used to instantiate a SplittingTransformer
which is then passed to the SplitAsyncResponseTransformer
SplittingTransformerConfiguration
?
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.
Okay thanks for clarifying. In that case then yeah I vote for SplittingTransformerConfiguration
|
Motivation and Context
Modifications
Add
SplitTransformerConfiguration
for when callingAsyncResponseTransformer.split()
Testing
Screenshots (if appropriate)
Types of changes
Checklist
mvn install
succeedsscripts/new-change
script and following the instructions. Commit the new file created by the script in.changes/next-release
with your changes.License