kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 95e17baa7f4fa5822f1eb888ad316188bf20cf60de74ea99a1d2040090588af7 |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2016-01-27 15:24 +01:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2016-01-27 15:24 +01:00 |
| Parents | e3de241dc92a |
2 files changed
modified driver-core/src/main/java/com/datastax/driver/core/Statement.java +3 −3
| @@ -63,7 +63,7 @@ | ||
| 63 | 63 | private volatile boolean traceQuery; |
| 64 | 64 | private volatile int fetchSize; |
| 65 | 65 | private volatile long defaultTimestamp = Long.MIN_VALUE; |
| 66 | - private volatile long readTimeoutMillis = Long.MIN_VALUE; | |
| 66 | + private volatile int readTimeoutMillis = Integer.MIN_VALUE; | |
| 67 | 67 | private volatile RetryPolicy retryPolicy; |
| 68 | 68 | private volatile ByteBuffer pagingState; |
| 69 | 69 | protected volatile Boolean idempotent; |
| @@ -332,7 +332,7 @@ | ||
| 332 | 332 | * @param readTimeoutMillis the timeout to set. Must be greater than 0 (or the default will be used). |
| 333 | 333 | * @return this {@code Statement} object. |
| 334 | 334 | */ |
| 335 | - public Statement setReadTimeoutMillis(long readTimeoutMillis) { | |
| 335 | + public Statement setReadTimeoutMillis(int readTimeoutMillis) { | |
| 336 | 336 | this.readTimeoutMillis = readTimeoutMillis; |
| 337 | 337 | return this; |
| 338 | 338 | } |
| @@ -343,7 +343,7 @@ | ||
| 343 | 343 | * @return the timeout. Note that a negative value means that the default |
| 344 | 344 | * {@link SocketOptions#getReadTimeoutMillis()} will be used. |
| 345 | 345 | */ |
| 346 | - public long getReadTimeoutMillis() { | |
| 346 | + public int getReadTimeoutMillis() { | |
| 347 | 347 | return readTimeoutMillis; |
| 348 | 348 | } |
| 349 | 349 |
modified driver-core/src/main/java/com/datastax/driver/core/StatementWrapper.java +2 −2
| @@ -152,12 +152,12 @@ | ||
| 152 | 152 | } |
| 153 | 153 | |
| 154 | 154 | @Override |
| 155 | - public Statement setReadTimeoutMillis(long readTimeoutMillis) { | |
| 155 | + public Statement setReadTimeoutMillis(int readTimeoutMillis) { | |
| 156 | 156 | return wrapped.setReadTimeoutMillis(readTimeoutMillis); |
| 157 | 157 | } |
| 158 | 158 | |
| 159 | 159 | @Override |
| 160 | - public long getReadTimeoutMillis() { | |
| 160 | + public int getReadTimeoutMillis() { | |
| 161 | 161 | return wrapped.getReadTimeoutMillis(); |
| 162 | 162 | } |
| 163 | 163 |