| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| private final class LazyServerStreamIterator implements Iterator<ReadObjectResponse>, Closeable { | ||
| private ServerStream<ReadObjectResponse> serverStream; | ||
| private Iterator<ReadObjectResponse> responseIterator; | ||
| private final class ReadObjectObserver extends StateCheckingResponseObserver<ReadObjectResponse> { |
There was a problem hiding this comment.
Unfortunately, git thinks this class is a modification of the previous LazyServerStreamIterator except it's a whole new class.
Rather than comparing this class to what was there before, evaluate this class as brand new.
Sorry, something went wrong.
There was a problem hiding this comment.
This is loosely modeled on the https://github.com/googleapis/sdk-platform-java/blob/2447513ce8a93632d2ff1878e717f4c914717bb3/gax-java/gax/src/main/java/com/google/api/gax/rpc/QueuingResponseObserver.java that was used previously
Sorry, something went wrong.
…en cancellation and message handling Update GapicUnbufferedReadableByteChannel to manage the grpc stream itself rather than using the stream iterator provided by gax. This allows us to ensure the cancellation is observed and our draining performs before returning from close(). As a side effect of not using the gax stream iterator, we now must handle stream restarts ourselves. GrpcStorageOptions.ReadObjectResumptionStrategy has been removed entirely, while RetryingDependencies and ResultRetryAlgorithm are now plumbed all the way down to the GapicUnbufferedReadableByteChannel.
…en cancellation and message handling (#2708) Update GapicUnbufferedReadableByteChannel to manage the grpc stream itself rather than using the stream iterator provided by gax. This allows us to ensure the cancellation is observed and our draining performs before returning from close(). As a side effect of not using the gax stream iterator, we now must handle stream restarts ourselves. GrpcStorageOptions.ReadObjectResumptionStrategy has been removed entirely, while RetryingDependencies and ResultRetryAlgorithm are now plumbed all the way down to the GapicUnbufferedReadableByteChannel.
| Back | FazBrowse Home | New Git URL |
Update GapicUnbufferedReadableByteChannel to manage the grpc stream itself rather than using the stream iterator provided by gax. This allows us to ensure the cancellation is observed and our draining performs before returning from close().
As a side effect of not using the gax stream iterator, we now must handle stream restarts ourselves. GrpcStorageOptions.ReadObjectResumptionStrategy has been removed entirely, while RetryingDependencies and ResultRetryAlgorithm are now plumbed all the way down to the GapicUnbufferedReadableByteChannel.