public interface RxSession extends Closeable
Session interface.| Modifier and Type | Method and Description |
|---|---|
void |
close() |
rx.Observable<com.datastax.driver.core.ResultSet> |
execute(com.datastax.driver.core.Statement statement)
Asynchronously execute a query and emit the corresponding
ResultSet on the
Schedulers.computation() scheduler. |
rx.Observable<com.datastax.driver.core.ResultSet> |
execute(com.datastax.driver.core.Statement statement,
rx.Scheduler scheduler)
Asynchronously execute a query and emit the corresponding
ResultSet on the specified scheduler. |
rx.Observable<com.datastax.driver.core.ResultSet> |
execute(String query)
Asynchronously execute a query and emit the corresponding
ResultSet on the
Schedulers.computation() scheduler. |
rx.Observable<com.datastax.driver.core.ResultSet> |
execute(String query,
Object... values)
Asynchronously execute a query and emit the corresponding
ResultSet on the
Schedulers.computation() scheduler, using the provided values. |
rx.Observable<com.datastax.driver.core.ResultSet> |
execute(String query,
rx.Scheduler scheduler)
Asynchronously execute a query and emit the corresponding
ResultSet on the specified scheduler. |
rx.Observable<com.datastax.driver.core.ResultSet> |
execute(String query,
rx.Scheduler scheduler,
Object... values)
Asynchronously execute a query and emit the corresponding
ResultSet on the specified scheduler,
using the proved values. |
rx.Observable<com.datastax.driver.core.Row> |
executeAndFetch(com.datastax.driver.core.Statement statement)
Asynchronously execute a query and fetch
Rows, emitted on the Schedulers.computation()
scheduler. |
rx.Observable<com.datastax.driver.core.Row> |
executeAndFetch(com.datastax.driver.core.Statement statement,
rx.Scheduler scheduler)
Asynchronously execute a query and fetch
Rows, emitted on the specified scheduler. |
rx.Observable<com.datastax.driver.core.Row> |
executeAndFetch(String query)
Asynchronously execute a query and fetch
Rows, emitted on the Schedulers.computation()
scheduler. |
rx.Observable<com.datastax.driver.core.Row> |
executeAndFetch(String query,
Object... values)
Asynchronously execute a query and fetch
Rows, emitted on the Schedulers.computation()
scheduler, using the provided values. |
rx.Observable<com.datastax.driver.core.Row> |
executeAndFetch(String query,
rx.Scheduler scheduler)
Asynchronously execute a query and fetch
Rows, emitted on the specified scheduler. |
rx.Observable<com.datastax.driver.core.Row> |
executeAndFetch(String query,
rx.Scheduler scheduler,
Object... values)
Asynchronously execute a query and fetch
Rows, emitted on the specified scheduler, using the
provided values. |
com.datastax.driver.core.Cluster |
getCluster() |
String |
getLoggedKeyspace() |
com.datastax.driver.core.Session |
getSession() |
com.datastax.driver.core.Session.State |
getState() |
RxSession |
init() |
boolean |
isClosed() |
rx.Observable<com.datastax.driver.core.PreparedStatement> |
prepare(com.datastax.driver.core.RegularStatement statement)
Asynchronously prepare a query and emit the corresponding
PreparedStatement on the
Schedulers.computation() scheduler. |
rx.Observable<com.datastax.driver.core.PreparedStatement> |
prepare(com.datastax.driver.core.RegularStatement statement,
rx.Scheduler scheduler)
Asynchronously prepare a query and emit the corresponding
PreparedStatement on the specified
scheduler. |
rx.Observable<com.datastax.driver.core.PreparedStatement> |
prepare(String query)
Asynchronously prepare a query and emit the corresponding
PreparedStatement on the
Schedulers.computation() scheduler. |
rx.Observable<com.datastax.driver.core.PreparedStatement> |
prepare(String query,
rx.Scheduler scheduler)
Asynchronously prepare a query and emit the corresponding
PreparedStatement on the specified
scheduler. |
String getLoggedKeyspace()
Session.getLoggedKeyspace()RxSession init()
Session.init()rx.Observable<com.datastax.driver.core.ResultSet> execute(String query)
ResultSet on the
Schedulers.computation() scheduler.query - the CQL query to executeObservable emitting just one ResultSet itemrx.Observable<com.datastax.driver.core.Row> executeAndFetch(String query)
Rows, emitted on the Schedulers.computation()
scheduler.query - the CQL query to executeObservable emitting Row itemsrx.Observable<com.datastax.driver.core.ResultSet> execute(String query, rx.Scheduler scheduler)
ResultSet on the specified scheduler.query - the CQL query to executescheduler - the Scheduler on which the returned Observable operatesObservable emitting just one ResultSet itemrx.Observable<com.datastax.driver.core.Row> executeAndFetch(String query, rx.Scheduler scheduler)
Rows, emitted on the specified scheduler.query - the CQL query to executescheduler - the Scheduler on which the returned Observable operatesObservable emitting Row itemsrx.Observable<com.datastax.driver.core.ResultSet> execute(String query, Object... values)
ResultSet on the
Schedulers.computation() scheduler, using the provided values.query - the CQL query to executevalues - values required for the execution of the queryObservable emitting just one ResultSet itemrx.Observable<com.datastax.driver.core.Row> executeAndFetch(String query, Object... values)
Rows, emitted on the Schedulers.computation()
scheduler, using the provided values.query - the CQL query to executevalues - values required for the execution of the queryObservable emitting Row itemsrx.Observable<com.datastax.driver.core.ResultSet> execute(String query, rx.Scheduler scheduler, Object... values)
ResultSet on the specified scheduler,
using the proved values.query - the CQL query to executescheduler - the Scheduler on which the returned Observable operatesvalues - values required for the execution of the queryObservable emitting just one ResultSet itemrx.Observable<com.datastax.driver.core.Row> executeAndFetch(String query, rx.Scheduler scheduler, Object... values)
Rows, emitted on the specified scheduler, using the
provided values.query - the CQL query to executescheduler - the Scheduler on which the returned Observable operatesvalues - values required for the execution of the queryObservable emitting Row itemsrx.Observable<com.datastax.driver.core.ResultSet> execute(com.datastax.driver.core.Statement statement)
ResultSet on the
Schedulers.computation() scheduler.statement - the CQL query to execute, of any Statement typeObservable emitting just one ResultSet itemrx.Observable<com.datastax.driver.core.Row> executeAndFetch(com.datastax.driver.core.Statement statement)
Rows, emitted on the Schedulers.computation()
scheduler.statement - the CQL query to execute, of any Statement typeObservable emitting Row itemsrx.Observable<com.datastax.driver.core.ResultSet> execute(com.datastax.driver.core.Statement statement,
rx.Scheduler scheduler)
ResultSet on the specified scheduler.statement - the CQL query to execute, of any Statement typescheduler - the Scheduler on which the returned Observable operatesObservable emitting just one ResultSet itemrx.Observable<com.datastax.driver.core.Row> executeAndFetch(com.datastax.driver.core.Statement statement,
rx.Scheduler scheduler)
Rows, emitted on the specified scheduler.statement - the CQL query to execute, of any Statement typescheduler - the Scheduler on which the returned Observable operatesObservable emitting Row itemsrx.Observable<com.datastax.driver.core.PreparedStatement> prepare(String query)
PreparedStatement on the
Schedulers.computation() scheduler.query - the CQL query to prepareObservable emitting just one PreparedStatement itemrx.Observable<com.datastax.driver.core.PreparedStatement> prepare(String query, rx.Scheduler scheduler)
PreparedStatement on the specified
scheduler.query - the CQL query to prepareObservable emitting just one PreparedStatement itemrx.Observable<com.datastax.driver.core.PreparedStatement> prepare(com.datastax.driver.core.RegularStatement statement)
PreparedStatement on the
Schedulers.computation() scheduler.statement - the RegularStatement to prepareObservable emitting just one PreparedStatement itemSession.prepareAsync(RegularStatement)rx.Observable<com.datastax.driver.core.PreparedStatement> prepare(com.datastax.driver.core.RegularStatement statement,
rx.Scheduler scheduler)
PreparedStatement on the specified
scheduler.statement - the RegularStatement to prepareObservable emitting just one PreparedStatement itemSession.prepareAsync(RegularStatement)void close()
close in interface AutoCloseableclose in interface CloseableSession.close()boolean isClosed()
Session.isClosed()com.datastax.driver.core.Cluster getCluster()
Session.getCluster()com.datastax.driver.core.Session getSession()
Session objectcom.datastax.driver.core.Session.State getState()
Session.getState()Copyright © 2014–2016 Red Hat, Inc.. All rights reserved.