-
Notifications
You must be signed in to change notification settings - Fork 77
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
Add abort() to writer #202
Comments
Hi @frankyn. I'd like to suggest an approach for resumable upload implementation. Before proper documenting and writing tests, I'd like to check with you if my approach is applicable.
to send
|
I wanted abort to be part of WriteChannel interface but it may not make sense for all libraries that support this interface. Could you review this open question? Changes to StorageRpc do look okay, but would make the name specific to resumable upload sessions. // com.google.cloud.storage.spi.v1.StorageRpc
void abortResumableUpload(String uploadId) |
I thought WriteChannel is a too generic interface to contain abort() method and didn't plan to extend it.
So adding abort() will make sense to tell close() that it's not needed anymore to flush buffered data when close() method is called on the channel. |
I think you'll need to submit a proposal to the interface to see if it's acceptable to add abort(). Could you follow-up on that? |
@frankyn Yes, I will work on this. |
@frankyn, this is the proposal: googleapis/google-cloud-java#9101 |
Thoughts and suggestions:
|
Feature request filed in google-cloud-java: googleapis/google-cloud-java#1232
The text was updated successfully, but these errors were encountered: