程序包 cn.taketoday.util.concurrent
package cn.taketoday.util.concurrent
Useful generic
java.util.concurrent.Future extensions.-
类说明Extension of
CompletableFuturewhich allows for cancelling a delegate along with theCompletableFutureitself.Failure callback for aListenableFuture.FutureAdapter<T,S> Abstract class that adapts aFutureparameterized over S into aFutureparameterized over T.Convenience utilities for working withFutureand implementations.ExtendFuturewith the capability to accept completion callbacks.Abstract class that adapts aListenableFutureparameterized over S into aListenableFutureparameterized over T.Callback mechanism for the outcome, success or failure, from aListenableFuture.Helper class forListenableFutureimplementations that maintains a of success and failure callbacks and helps to notify them.Extension ofFutureTaskthat implementsListenableFuture.Adapts aMonointo aListenableFutureby obtaining aCompletableFuturefrom theMonoviaMono.toFuture()and then adapting it withCompletableToListenableFutureAdapter.AListenableFuturewhose value can be set viaSettableListenableFuture.set(Object)orSettableListenableFuture.setException(Throwable).Reentrant lock that can be used in a try-with-resources statement.A reentrant lock with a condition that can be used in a try-with-resources statement.Success callback for aListenableFuture.