Class FutureTaskWithResources<V>

All Implemented Interfaces:
com.google.common.util.concurrent.ListenableFuture<V>, io.netty.util.concurrent.Future<V>, Runnable, Future<V>, RunnableFuture<V>, Awaitable, Future<V>, RunnableFuture<V>

public class FutureTaskWithResources<V> extends FutureTask<V>
A FutureTask that utilises Cassandra's AsyncFuture, making it compatible with ExecutorPlus. Encapsulates a WithResources; the call will instantiate the resources before executing, and close them after executing but before completing the task. Propagates exceptions to the uncaught exception handler.
  • Constructor Details