Interface CassandraSession
-
public interface CassandraSessionA thin facade on top of Cassandra'ssession. The purpose of using this interface rather than Cassandra'sSessiondirectly is because Newts wraps the session in a similar interface and does not expose the session directly. So rather than depending on the newts version of the interface in OpenNMS we have this one and proxy between them in NewtsCassandraSessionFactory. The implication being that any future implementations that may expose aSessiondirectly will have to wrap it with this interface, but that should be trivial.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.datastax.driver.core.ResultSetexecute(com.datastax.driver.core.Statement statement)com.datastax.driver.core.ResultSetexecute(String statement)com.datastax.driver.core.ResultSetFutureexecuteAsync(com.datastax.driver.core.Statement statement)com.datastax.driver.core.PreparedStatementprepare(com.datastax.driver.core.RegularStatement statement)com.datastax.driver.core.PreparedStatementprepare(String statement)Future<Void>shutdown()
-
-
-
Method Detail
-
prepare
com.datastax.driver.core.PreparedStatement prepare(String statement)
-
prepare
com.datastax.driver.core.PreparedStatement prepare(com.datastax.driver.core.RegularStatement statement)
-
executeAsync
com.datastax.driver.core.ResultSetFuture executeAsync(com.datastax.driver.core.Statement statement)
-
execute
com.datastax.driver.core.ResultSet execute(com.datastax.driver.core.Statement statement)
-
execute
com.datastax.driver.core.ResultSet execute(String statement)
-
-