Note that this method will initialize the newly created session, trying to connect to the Cassandra nodes before returning. If you only want to create a Session object without initializing it right away, see {@link #newSession}. @return a new session on this cluster sets to no keyspace. @throws NoHostAvailableException if the Cluster has not been initializedyet ( {@link #init} has not be called and this is the first connect call)and no host amongst the contact points can be reached. @throws AuthenticationException if an authentication error occurs whilecontacting the initial contact points. @throws IllegalStateException if the Cluster was closed prior to callingthis method. This can occur either directly (through {@link #close()} or{@link #closeAsync()}), or as a result of an error while initializing the Cluster.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|