Interface ReactiveSessionCallback<T>

Type Parameters:
T -
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ReactiveSessionCallback<T>
Generic callback interface for code that operates on a CQL ReactiveSession. Allows to execute any number of operations on a single ReactiveSession, using any type and number of Statements.

This is particularly useful for delegating to existing data access code that expects a ReactiveSession to work on and throws DriverException. For newly written code, it is strongly recommended to use CqlTemplate's more specific operations, for example a query or update variant.

Since:
2.0
Author:
Mark Paluch
See Also: