Interface AsyncSessionCallback<T>

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

@Deprecated(since="4.0", forRemoval=true) @FunctionalInterface public interface AsyncSessionCallback<T>
Deprecated, for removal: This API element is subject to removal in a future version.
since 4.0, use the CompletableFuture-based variant.
Generic callback interface for code that operates asynchronously on a Cassandra CqlSession. Allows to execute any number of operations on a single session, using any type and number of statements.

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

Since:
4.0
Author:
David Webb, Mark Paluch
See Also: