@@ -33,9 +33,9 @@ static class Builder implements com.spectralogic.ds3client.utils.Builder<Connect
3333 private boolean https = false ;
3434 private URI proxy = null ;
3535 private int retries = 5 ;
36- private int bufferSize = 1024 * 1024 ;
37- private int connectionTimeout = 5 * 1000 ;
38- private int socketTimeout = 60 * 60 * 1000 ;
36+ private int bufferSizeInBytes = 1024 * 1024 ;
37+ private int connectionTimeoutInMillis = 5 * 1000 ;
38+ private int socketTimeoutInMillis = 60 * 60 * 1000 ;
3939 private boolean certificateVerification ;
4040
4141 private Builder (final String endpoint , final Credentials credentials ) {
@@ -58,13 +58,13 @@ public Builder withRedirectRetries(final int retries) {
5858 return this ;
5959 }
6060
61- public Builder withBufferSize (final int bufferSize ) {
62- this .bufferSize = bufferSize ;
61+ public Builder withBufferSize (final int bufferSizeInBytes ) {
62+ this .bufferSizeInBytes = bufferSizeInBytes ;
6363 return this ;
6464 }
6565
66- public Builder withConnectionTimeout (final int connectionTimeout ) {
67- this .connectionTimeout = connectionTimeout ;
66+ public Builder withConnectionTimeout (final int connectionTimeoutInMillis ) {
67+ this .connectionTimeoutInMillis = connectionTimeoutInMillis ;
6868 return this ;
6969 }
7070
@@ -73,8 +73,8 @@ public Builder withCertificateVerification(final boolean certificateVerification
7373 return this ;
7474 }
7575
76- public Builder withSocketTimeout (final int socketTimeout ) {
77- this .socketTimeout = socketTimeout ;
76+ public Builder withSocketTimeout (final int socketTimeoutInMillis ) {
77+ this .socketTimeoutInMillis = socketTimeoutInMillis ;
7878 return this ;
7979 }
8080
@@ -115,9 +115,9 @@ private static String buildAuthority(final JobNode node, final ConnectionDetails
115115 private final boolean https ;
116116 private final URI proxy ;
117117 private final int retries ;
118- private final int bufferSize ;
119- private final int connectionTimeout ;
120- private final int socketTimeout ;
118+ private final int bufferSizeInBytes ;
119+ private final int connectionTimeoutInMillis ;
120+ private final int socketTimeoutInMillis ;
121121 private final boolean certificateVerification ;
122122
123123 static Builder builder (final String uriEndpoint , final Credentials credentials ) {
@@ -130,10 +130,10 @@ private ConnectionDetailsImpl(final Builder builder) {
130130 this .https = builder .https ;
131131 this .proxy = builder .proxy ;
132132 this .retries = builder .retries ;
133- this .bufferSize = builder .bufferSize ;
134- this .connectionTimeout = builder .connectionTimeout ;
133+ this .bufferSizeInBytes = builder .bufferSizeInBytes ;
134+ this .connectionTimeoutInMillis = builder .connectionTimeoutInMillis ;
135135 this .certificateVerification = builder .certificateVerification ;
136- this .socketTimeout = builder .socketTimeout ;
136+ this .socketTimeoutInMillis = builder .socketTimeoutInMillis ;
137137 }
138138
139139 @ Override
@@ -163,17 +163,17 @@ public int getRetries() {
163163
164164 @ Override
165165 public int getBufferSize () {
166- return bufferSize ;
166+ return bufferSizeInBytes ;
167167 }
168168
169169 @ Override
170170 public int getConnectionTimeout () {
171- return connectionTimeout ;
171+ return connectionTimeoutInMillis ;
172172 }
173173
174174 @ Override
175175 public int getSocketTimeout () {
176- return socketTimeout ;
176+ return socketTimeoutInMillis ;
177177 }
178178
179179 @ Override
0 commit comments