Package com.datastax.oss.driver.api.core
Interface CqlSession
-
- All Superinterfaces:
AsyncAutoCloseable,AsyncCqlSession,AutoCloseable,ContinuousReactiveSession,ContinuousSession,GraphSession,ReactiveGraphSession,ReactiveSession,Session,SyncCqlSession
- All Known Subinterfaces:
DseSession
public interface CqlSession extends Session, SyncCqlSession, AsyncCqlSession, ReactiveSession, ContinuousSession, ContinuousReactiveSession, GraphSession, ReactiveGraphSession
The default session type built by the driver.It provides user-friendly execution methods for synchronous, asynchronous, and reactive CQL requests.
Deprecated DSE Graph and continuous-paging interfaces remain for compatibility. Their synchronous execution methods throw
UnsupportedOperationException, asynchronous methods return failed stages, and reactive methods signal the error on subscription.
-
-
Field Summary
-
Fields inherited from interface com.datastax.oss.driver.api.core.session.Session
OSS_DRIVER_COORDINATES
-
-
Method Summary
Static Methods Modifier and Type Method Description static CqlSessionBuilderbuilder()Returns a builder to create a new instance.-
Methods inherited from interface com.datastax.oss.driver.api.core.AsyncAutoCloseable
close, closeAsync, closeFuture, forceCloseAsync, isClosed
-
Methods inherited from interface com.datastax.oss.driver.api.core.cql.AsyncCqlSession
executeAsync, executeAsync, executeAsync, executeAsync, prepareAsync, prepareAsync, prepareAsync
-
Methods inherited from interface com.datastax.dse.driver.api.core.cql.continuous.reactive.ContinuousReactiveSession
executeContinuouslyReactive, executeContinuouslyReactive
-
Methods inherited from interface com.datastax.dse.driver.api.core.cql.continuous.ContinuousSession
executeContinuously, executeContinuouslyAsync
-
Methods inherited from interface com.datastax.dse.driver.api.core.graph.GraphSession
execute, executeAsync
-
Methods inherited from interface com.datastax.dse.driver.api.core.graph.reactive.ReactiveGraphSession
executeReactive
-
Methods inherited from interface com.datastax.dse.driver.api.core.cql.reactive.ReactiveSession
executeReactive, executeReactive, executeReactive, executeReactive
-
Methods inherited from interface com.datastax.oss.driver.api.core.session.Session
checkSchemaAgreement, checkSchemaAgreementAsync, execute, getContext, getKeyspace, getMetadata, getMetrics, getName, isSchemaMetadataEnabled, refreshSchema, refreshSchemaAsync, setSchemaMetadataEnabled
-
-
-
-
Method Detail
-
builder
@NonNull static CqlSessionBuilder builder()
Returns a builder to create a new instance.Note that this builder is mutable and not thread-safe.
- Returns:
CqlSessionBuilderto create a new instance.
-
-