datastax/java-driver — pull request #182 by olim7t (2014-06-16 09:34:52+00:00)
Title: JAVA-335: throw meaningful error when trying to use a closed Cluster.

Previously this lead to a `RejectedExecutionException` by one of the closed executors, which made the cause of the error unclear.

I've left `Cluster.newSession` as is, to preserve its contract ("it cannot fail").

Reconnection at initialization time was also discussed in JAVA-335. I will create a separate issue for that.