@FunctionalInterface public interface ReactivePreparedStatementCreator
ReactiveCqlTemplateclass. This interface creates a
ReactiveSession, provided by the
Implementations may either create new prepared statements or reuse cached instances. Implementations do not need to
concern themselves with
DriverExceptions that may be thrown from operations they attempt. The
ReactiveCqlTemplate class will catch and handle
ReactivePreparedStatementCreator should also implement the
CqlProvider interface if it is able to
provide the CQL it uses for
PreparedStatement creation. This allows for better contextual information in case
reactor.core.publisher.Mono<com.datastax.oss.driver.api.core.cql.PreparedStatement> createPreparedStatement(ReactiveSession session) throws com.datastax.oss.driver.api.core.DriverException
ReactiveCqlTemplatewill attempt to cache the
PreparedStatements for future use without the overhead of re-preparing on the entire cluster.
session- Session to use to create statement, must not be null.
com.datastax.oss.driver.api.core.DriverException- there is no need to catch DriverException that may be thrown in the implementation of this method. The
ReactiveCqlTemplateclass will handle them.
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.