Class PreparedStatementStrategy
- java.lang.Object
-
- com.couchbase.client.core.msg.query.PreparedStatementStrategy
-
- Direct Known Subclasses:
EnhancedPreparedStatementStrategy
,LegacyPreparedStatementStrategy
@Internal public abstract class PreparedStatementStrategy extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,PreparedStatement>
cache
-
Constructor Summary
Constructors Constructor Description PreparedStatementStrategy(Core core, int cacheSize)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
evict(QueryRequest request)
abstract Mono<QueryResponse>
execute(QueryRequest request)
Mono<QueryResponse>
executeAdhoc(QueryRequest request)
protected Mono<QueryResponse>
executeAlreadyPrepared(QueryRequest request, PreparedStatement prepared)
Executes a query using an existing prepared statement.protected RequestTracer
requestTracer()
-
-
-
Field Detail
-
cache
protected final Map<String,PreparedStatement> cache
-
-
Constructor Detail
-
PreparedStatementStrategy
public PreparedStatementStrategy(Core core, int cacheSize)
-
-
Method Detail
-
requestTracer
protected RequestTracer requestTracer()
-
execute
public abstract Mono<QueryResponse> execute(QueryRequest request)
-
executeAlreadyPrepared
protected Mono<QueryResponse> executeAlreadyPrepared(QueryRequest request, PreparedStatement prepared)
Executes a query using an existing prepared statement.
-
executeAdhoc
public Mono<QueryResponse> executeAdhoc(QueryRequest request)
-
evict
public void evict(QueryRequest request)
-
-