@@ -41,7 +41,7 @@ public abstract class BaseWriteChannel<
41
41
private final ServiceOptionsT options ;
42
42
private final EntityT entity ;
43
43
private final String uploadId ;
44
- private int position ;
44
+ private long position ;
45
45
private byte [] buffer = new byte [0 ];
46
46
private int limit ;
47
47
private boolean isOpen = true ;
@@ -101,11 +101,11 @@ protected String getUploadId() {
101
101
}
102
102
103
103
@ Deprecated
104
- protected int position () {
104
+ protected long position () {
105
105
return getPosition ();
106
106
}
107
107
108
- protected int getPosition () {
108
+ protected long getPosition () {
109
109
return position ;
110
110
}
111
111
@@ -119,7 +119,7 @@ protected byte[] getBuffer() {
119
119
}
120
120
121
121
@ Deprecated
122
- protected int limit () {
122
+ protected long limit () {
123
123
return getLimit ();
124
124
}
125
125
@@ -245,7 +245,7 @@ protected abstract static class BaseState<
245
245
protected final ServiceOptionsT serviceOptions ;
246
246
protected final EntityT entity ;
247
247
protected final String uploadId ;
248
- protected final int position ;
248
+ protected final long position ;
249
249
protected final byte [] buffer ;
250
250
protected final boolean isOpen ;
251
251
protected final int chunkSize ;
@@ -274,7 +274,7 @@ public abstract static class Builder<
274
274
private final ServiceOptionsT serviceOptions ;
275
275
private final EntityT entity ;
276
276
private final String uploadId ;
277
- private int position ;
277
+ private long position ;
278
278
private byte [] buffer ;
279
279
private boolean isOpen ;
280
280
private int chunkSize ;
@@ -290,7 +290,7 @@ public Builder<ServiceOptionsT, EntityT> position(int position) {
290
290
return setPosition (position );
291
291
}
292
292
293
- public Builder <ServiceOptionsT , EntityT > setPosition (int position ) {
293
+ public Builder <ServiceOptionsT , EntityT > setPosition (long position ) {
294
294
this .position = position ;
295
295
return this ;
296
296
}
0 commit comments