kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 841c5e37e2ff3d28deeba51d0eea104ab7d25d38b9054310a0d8e90c984c358f |
|---|---|
| Author | Alexandre Dutra <alexandre.dutra@datastax.com> · 2015-05-28 13:16 +02:00 |
| Committer | Alexandre Dutra <alexandre.dutra@datastax.com> · 2015-05-28 13:16 +02:00 |
| Parents | 9ece039409ca |
1 file changed
modified driver-core/src/main/java/com/datastax/driver/core/PoolingOptions.java +1 −1
| @@ -336,7 +336,7 @@ | ||
| 336 | 336 | * @throws IllegalArgumentException if the interval is negative. |
| 337 | 337 | */ |
| 338 | 338 | public PoolingOptions setHeartbeatIntervalSeconds(int heartbeatIntervalSeconds) { |
| 339 | - if (poolTimeoutMillis < 0) | |
| 339 | + if (heartbeatIntervalSeconds < 0) | |
| 340 | 340 | throw new IllegalArgumentException("Heartbeat interval must be positive"); |
| 341 | 341 | |
| 342 | 342 | this.heartbeatIntervalSeconds = heartbeatIntervalSeconds; |