You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: trunk/google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/CloudStorageConfiguration.java
+17-1Lines changed: 17 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,12 @@ public abstract class CloudStorageConfiguration {
59
59
*/
60
60
publicabstractintblockSize();
61
61
62
+
/**
63
+
* Returns the number of times we try re-opening a channel if it's closed unexpectedly
64
+
* while reading.
65
+
*/
66
+
publicabstractintmaxChannelReopens();
67
+
62
68
/**
63
69
* Creates a new builder, initialized with the following settings:
64
70
*
@@ -82,6 +88,7 @@ public static final class Builder {
Copy file name to clipboardExpand all lines: trunk/google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/CloudStorageFileSystemProvider.java
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -141,7 +141,6 @@ public CloudStorageFileSystemProvider() {
Copy file name to clipboardExpand all lines: trunk/google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/CloudStorageOptions.java
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -91,5 +91,15 @@ public static CloudStorageOption.OpenCopy withBlockSize(int size) {
91
91
returnOptionBlockSize.create(size);
92
92
}
93
93
94
+
/**
95
+
* Sets the max number of times that the channel can be reopen if reading
Copy file name to clipboardExpand all lines: trunk/google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/CloudStorageReadChannel.java
Copy file name to clipboardExpand all lines: trunk/google-cloud-contrib/google-cloud-nio/src/test/java/com/google/cloud/storage/contrib/nio/CloudStorageReadChannelTest.java
+26-1Lines changed: 26 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,7 @@
30
30
importcom.google.cloud.storage.BlobId;
31
31
importcom.google.cloud.storage.Storage;
32
32
33
+
importcom.google.cloud.storage.StorageException;
33
34
importorg.junit.Before;
34
35
importorg.junit.Rule;
35
36
importorg.junit.Test;
@@ -63,7 +64,7 @@ public void before() throws IOException {
0 commit comments