kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 4b4f49c77b5f5d59f9eaf8b4f394061909e1c062270c8c2ca43f9a04d236a547 |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2015-05-06 09:12 +02:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2015-05-14 16:29 +02:00 |
| Parents | 2a77dff86abf |
1 file changed
modified driver-core/src/main/java/com/datastax/driver/core/Session.java +13 −4
| @@ -296,10 +296,12 @@ | ||
| 296 | 296 | * This method has no particular effect if the session was already closed |
| 297 | 297 | * (in which case the returned future will return immediately). |
| 298 | 298 | * <p> |
| 299 | - * Note that if you want to close the full {@code Cluster} instance | |
| 300 | - * this session is part of, you should use {@link Cluster#close} instead | |
| 301 | - * (which will call this method for all sessions but also release some | |
| 302 | - * additional resources). | |
| 299 | + * Note that this method does not close the corresponding {@code Cluster} | |
| 300 | + * instance (which holds additional resources, in particular internal | |
| 301 | + * executors that must be shut down in order for the client program to | |
| 302 | + * terminate). | |
| 303 | + * If you want to do so, use {@link Cluster#close}, but note that it will | |
| 304 | + * close all sessions created from that cluster. | |
| 303 | 305 | * |
| 304 | 306 | * @return a future on the completion of the shutdown process. |
| 305 | 307 | */ |
| @@ -310,6 +312,13 @@ | ||
| 310 | 312 | * that shutdown completes. |
| 311 | 313 | * <p> |
| 312 | 314 | * This method is a shortcut for {@code closeAsync().get()}. |
| 315 | + * <p> | |
| 316 | + * Note that this method does not close the corresponding {@code Cluster} | |
| 317 | + * instance (which holds additional resources, in particular internal | |
| 318 | + * executors that must be shut down in order for the client program to | |
| 319 | + * terminate). | |
| 320 | + * If you want to do so, use {@link Cluster#close}, but note that it will | |
| 321 | + * close all sessions created from that cluster. | |
| 313 | 322 | */ |
| 314 | 323 | public void close(); |
| 315 | 324 |