public class GuavaListenableFutureAdapter<T> extends ObjectSE implements ListenableFuture<T>
ListenableFuture
を Spring の ListenableFuture
に適合させるアダプタークラス。コンストラクターと説明 |
---|
GuavaListenableFutureAdapter(com.google.common.util.concurrent.ListenableFuture<T> adaptee, PersistenceExceptionTranslator persistenceExceptionTranslator) |
修飾子と型 | メソッドと説明 |
---|---|
void | addCallback(ListenableFutureCallback<? super T> callback) |
void | addCallback(SuccessCallback<? super T> successCallback, FailureCallback failureCallback) |
boolean | cancel(boolean mayInterruptIfRunning) |
T | get() |
T | get(long timeout, TimeUnitSE unit) |
boolean | isCancelled() |
boolean | isDone() |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
completable
public GuavaListenableFutureAdapter(com.google.common.util.concurrent.ListenableFuture<T> adaptee, PersistenceExceptionTranslator persistenceExceptionTranslator)
adaptee
- null であってはなりません。persistenceExceptionTranslator
- null であってはなりません。public void addCallback(ListenableFutureCallback<? super T> callback)
ListenableFuture<T>
の addCallback
public void addCallback(SuccessCallback<? super T> successCallback, FailureCallback failureCallback)
ListenableFuture<T>
の addCallback
public boolean isCancelled()
FutureSE<T>
の isCancelledSE
public T get() throws InterruptedExceptionSE, ExecutionExceptionSE
FutureSE<T>
の getSE
InterruptedExceptionSE
ExecutionExceptionSE
public T get(long timeout, TimeUnitSE unit) throws InterruptedExceptionSE, ExecutionExceptionSE, TimeoutExceptionSE
FutureSE<T>
の getSE
InterruptedExceptionSE
ExecutionExceptionSE
TimeoutExceptionSE
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.