Class CassandraFutureAdapter<T>
java.lang.Object
org.springframework.data.cassandra.core.cql.util.CassandraFutureAdapter<T>
- Type Parameters:
T
- the result type returned by this Future'sget
method
- All Implemented Interfaces:
Future<T>
,ListenableFuture<T>
Deprecated.
Adapts a
CompletableFuture
or CompletionStage
into a Spring ListenableFuture
applying
PersistenceExceptionTranslator
.- Since:
- 3.0
-
Constructor Summary
ConstructorDescriptionCassandraFutureAdapter
(CompletableFuture<T> completableFuture, PersistenceExceptionTranslator exceptionMapper) Deprecated.Create a new adapter for the givenCompletableFuture
.CassandraFutureAdapter
(CompletionStage<T> completionStage, PersistenceExceptionTranslator exceptionMapper) Deprecated.Create a new adapter for the givenCompletionStage
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCallback
(ListenableFutureCallback<? super T> callback) Deprecated.void
addCallback
(SuccessCallback<? super T> successCallback, FailureCallback failureCallback) Deprecated.boolean
cancel
(boolean mayInterruptIfRunning) Deprecated.Deprecated.get()
Deprecated.Deprecated.boolean
Deprecated.boolean
isDone()
Deprecated.
-
Constructor Details
-
CassandraFutureAdapter
public CassandraFutureAdapter(CompletionStage<T> completionStage, PersistenceExceptionTranslator exceptionMapper) Deprecated.Create a new adapter for the givenCompletionStage
. -
CassandraFutureAdapter
public CassandraFutureAdapter(CompletableFuture<T> completableFuture, PersistenceExceptionTranslator exceptionMapper) Deprecated.Create a new adapter for the givenCompletableFuture
.
-
-
Method Details
-
addCallback
Deprecated.- Specified by:
addCallback
in interfaceListenableFuture<T>
-
addCallback
public void addCallback(SuccessCallback<? super T> successCallback, FailureCallback failureCallback) Deprecated.- Specified by:
addCallback
in interfaceListenableFuture<T>
-
completable
Deprecated.- Specified by:
completable
in interfaceListenableFuture<T>
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) Deprecated. -
isCancelled
public boolean isCancelled()Deprecated.- Specified by:
isCancelled
in interfaceFuture<T>
-
isDone
public boolean isDone()Deprecated. -
get
Deprecated.- Specified by:
get
in interfaceFuture<T>
- Throws:
InterruptedException
ExecutionException
-
get
public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException Deprecated.- Specified by:
get
in interfaceFuture<T>
- Throws:
InterruptedException
ExecutionException
TimeoutException
-
CompletableFuture
directly.