Index
All Classes and Interfaces|All Packages
A
- addExceptionCallback(ListenableFuture<T>, Runnable) - Static method in class io.airlift.concurrent.MoreFutures
-
Invokes the callback if the future fails.
- addExceptionCallback(ListenableFuture<T>, Runnable, Executor) - Static method in class io.airlift.concurrent.MoreFutures
-
Invokes the callback, using the specified executor, if the future fails.
- addExceptionCallback(ListenableFuture<T>, Consumer<Throwable>) - Static method in class io.airlift.concurrent.MoreFutures
-
Invokes the callback if the future fails.
- addExceptionCallback(ListenableFuture<T>, Consumer<Throwable>, Executor) - Static method in class io.airlift.concurrent.MoreFutures
-
Invokes the callback, using the specified executor, if the future fails.
- addSuccessCallback(ListenableFuture<T>, Runnable) - Static method in class io.airlift.concurrent.MoreFutures
-
Invokes the callback if the future completes successfully.
- addSuccessCallback(ListenableFuture<T>, Runnable, Executor) - Static method in class io.airlift.concurrent.MoreFutures
-
Invokes the callback, using the specified executor, if the future completes successfully.
- addSuccessCallback(ListenableFuture<T>, Consumer<T>) - Static method in class io.airlift.concurrent.MoreFutures
-
Invokes the callback if the future completes successfully.
- addSuccessCallback(ListenableFuture<T>, Consumer<T>, Executor) - Static method in class io.airlift.concurrent.MoreFutures
-
Invokes the callback, using the specified executor, if the future completes successfully.
- addTimeout(ListenableFuture<T>, Callable<T>, Duration, ScheduledExecutorService) - Static method in class io.airlift.concurrent.MoreFutures
-
Returns a new future that is completed when the supplied future completes or when the timeout expires.
- addTimeout(CompletableFuture<T>, Callable<T>, Duration, ScheduledExecutorService) - Static method in class io.airlift.concurrent.MoreFutures
-
Deprecated.
- allAsList(List<CompletableFuture<? extends V>>) - Static method in class io.airlift.concurrent.MoreFutures
-
Deprecated.
- allAsListWithCancellationOnFailure(Iterable<? extends ListenableFuture<? extends V>>) - Static method in class io.airlift.concurrent.MoreFutures
-
Same as
Futures.allAsList(ListenableFuture[]), but additionally cancels any remaining component Futures if the result has already failed. - asVoid(ListenableFuture<T>) - Static method in class io.airlift.concurrent.MoreFutures
-
Transforms a ListenableFuture<T> to ListenableFuture<Void>.
- AsyncSemaphore<T,
R> - Class in io.airlift.concurrent -
Guarantees that no more than maxPermits of tasks will be run concurrently.
- AsyncSemaphore(int, Executor, Function<T, ListenableFuture<R>>) - Constructor for class io.airlift.concurrent.AsyncSemaphore
- awaitTermination(long, TimeUnit) - Method in class io.airlift.concurrent.ExecutorServiceAdapter
B
- BoundedExecutor - Class in io.airlift.concurrent
-
Guarantees that no more than maxThreads will be used to execute tasks submitted through
execute(). - BoundedExecutor(Executor, int) - Constructor for class io.airlift.concurrent.BoundedExecutor
C
- checkSuccess(Future<?>, String) - Static method in class io.airlift.concurrent.MoreFutures
-
Checks that the completed future completed successfully.
- close() - Method in class io.airlift.concurrent.SetThreadName
- create() - Static method in class io.airlift.concurrent.ExtendedSettableFuture
D
- daemonThreadsNamed(String) - Static method in class io.airlift.concurrent.Threads
-
Creates a
ThreadFactorythat creates named daemon threads. - DynamicSizeBoundQueue<T> - Class in io.airlift.concurrent
-
Size constrained queue that utilizes a dynamic element size function.
- DynamicSizeBoundQueue(long, ToLongFunction<T>) - Constructor for class io.airlift.concurrent.DynamicSizeBoundQueue
- DynamicSizeBoundQueue(long, ToLongFunction<T>, Ticker) - Constructor for class io.airlift.concurrent.DynamicSizeBoundQueue
E
- execute(Runnable) - Method in class io.airlift.concurrent.BoundedExecutor
- execute(Runnable) - Method in class io.airlift.concurrent.ExecutorServiceAdapter
- ExecutorServiceAdapter - Class in io.airlift.concurrent
-
Converts an Executor into a minimalistic ExecutorService
- ExecutorServiceAdapter(Executor) - Constructor for class io.airlift.concurrent.ExecutorServiceAdapter
- ExtendedSettableFuture<V> - Class in io.airlift.concurrent
F
- failedFuture(Throwable) - Static method in class io.airlift.concurrent.MoreFutures
-
Deprecated.
- firstCompletedFuture(Iterable<? extends CompletionStage<? extends V>>) - Static method in class io.airlift.concurrent.MoreFutures
-
Deprecated.
- firstCompletedFuture(Iterable<? extends CompletionStage<? extends V>>, boolean) - Static method in class io.airlift.concurrent.MoreFutures
-
Deprecated.
- forcePut(T) - Method in class io.airlift.concurrent.DynamicSizeBoundQueue
-
Insert without regard to the max size (potentially exceeding the max limit).
- from(Executor) - Static method in class io.airlift.concurrent.ExecutorServiceAdapter
G
- get(K) - Method in class io.airlift.concurrent.ThreadLocalCache
- getActiveCount() - Method in class io.airlift.concurrent.ThreadPoolExecutorMBean
- getCompletedTaskCount() - Method in class io.airlift.concurrent.ThreadPoolExecutorMBean
- getCorePoolSize() - Method in class io.airlift.concurrent.ThreadPoolExecutorMBean
- getDone(Future<T>) - Static method in class io.airlift.concurrent.MoreFutures
-
Returns the result of the input
Future, which must have already completed. - getFutureValue(Future<V>) - Static method in class io.airlift.concurrent.MoreFutures
-
Waits for the value from the future.
- getFutureValue(Future<V>, Class<E>) - Static method in class io.airlift.concurrent.MoreFutures
-
Waits for the value from the future.
- getKeepAliveTime() - Method in class io.airlift.concurrent.ThreadPoolExecutorMBean
- getLargestPoolSize() - Method in class io.airlift.concurrent.ThreadPoolExecutorMBean
- getMaximumPoolSize() - Method in class io.airlift.concurrent.ThreadPoolExecutorMBean
- getMaxSize() - Method in class io.airlift.concurrent.DynamicSizeBoundQueue
- getPoolSize() - Method in class io.airlift.concurrent.ThreadPoolExecutorMBean
- getQueuedTaskCount() - Method in class io.airlift.concurrent.ThreadPoolExecutorMBean
- getRejectedExecutionHandler() - Method in class io.airlift.concurrent.ThreadPoolExecutorMBean
- getSize() - Method in class io.airlift.concurrent.DynamicSizeBoundQueue
-
Gets the current size of the queue.
- getTaskCount() - Method in class io.airlift.concurrent.ThreadPoolExecutorMBean
- getThreadId(Thread) - Static method in class io.airlift.concurrent.SetThreadName
I
- invokeAll(Collection<? extends Callable<T>>) - Method in class io.airlift.concurrent.ExecutorServiceAdapter
- invokeAll(Collection<? extends Callable<T>>, long, TimeUnit) - Method in class io.airlift.concurrent.ExecutorServiceAdapter
- invokeAny(Collection<? extends Callable<T>>) - Method in class io.airlift.concurrent.ExecutorServiceAdapter
- invokeAny(Collection<? extends Callable<T>>, long, TimeUnit) - Method in class io.airlift.concurrent.ExecutorServiceAdapter
- io.airlift.concurrent - package io.airlift.concurrent
- isAllowCoreThreadTimeOut() - Method in class io.airlift.concurrent.ThreadPoolExecutorMBean
- isShutdown() - Method in class io.airlift.concurrent.ExecutorServiceAdapter
- isShutdown() - Method in class io.airlift.concurrent.ThreadPoolExecutorMBean
- isTerminated() - Method in class io.airlift.concurrent.ExecutorServiceAdapter
- isTerminated() - Method in class io.airlift.concurrent.ThreadPoolExecutorMBean
- isTerminating() - Method in class io.airlift.concurrent.ThreadPoolExecutorMBean
M
- mirror(ListenableFuture<? extends T>, SettableFuture<? super T>, boolean) - Static method in class io.airlift.concurrent.MoreFutures
-
Mirrors all results of the source Future to the destination Future.
- MoreFutures - Class in io.airlift.concurrent
O
- offer(T) - Method in class io.airlift.concurrent.DynamicSizeBoundQueue
- offer(T, long, TimeUnit) - Method in class io.airlift.concurrent.DynamicSizeBoundQueue
- offerWithBackoff(T) - Method in class io.airlift.concurrent.DynamicSizeBoundQueue
-
Enqueue the element if there is space, otherwise returns a ListenableFuture that will complete when space becomes available for the element.
P
- poll() - Method in class io.airlift.concurrent.DynamicSizeBoundQueue
- poll(long, TimeUnit) - Method in class io.airlift.concurrent.DynamicSizeBoundQueue
- processAll(List<T>, Function<T, ListenableFuture<R>>, int, Executor) - Static method in class io.airlift.concurrent.AsyncSemaphore
-
Process a list of tasks as a single unit (similar to
Futures.allAsList(ListenableFuture[])) with limiting the number of tasks running in parallel. - propagateCancellation(ListenableFuture<? extends X>, Future<? extends Y>, boolean) - Static method in class io.airlift.concurrent.MoreFutures
-
Cancels the destination Future if the source Future is cancelled.
- put(T) - Method in class io.airlift.concurrent.DynamicSizeBoundQueue
S
- set(V) - Method in class io.airlift.concurrent.ExtendedSettableFuture
- setAllowCoreThreadTimeOut(boolean) - Method in class io.airlift.concurrent.ThreadPoolExecutorMBean
- setAsync(ListenableFuture<? extends V>) - Method in class io.airlift.concurrent.ExtendedSettableFuture
-
Sets this current future with the result of the delegate.
- setCorePoolSize(int) - Method in class io.airlift.concurrent.ThreadPoolExecutorMBean
- setException(Throwable) - Method in class io.airlift.concurrent.ExtendedSettableFuture
- setKeepAliveTime(String) - Method in class io.airlift.concurrent.ThreadPoolExecutorMBean
- setMaximumPoolSize(int) - Method in class io.airlift.concurrent.ThreadPoolExecutorMBean
- SetThreadName - Class in io.airlift.concurrent
- SetThreadName(String, Object...) - Constructor for class io.airlift.concurrent.SetThreadName
- shutdown() - Method in class io.airlift.concurrent.ExecutorServiceAdapter
- shutdownNow() - Method in class io.airlift.concurrent.ExecutorServiceAdapter
- submit(Runnable) - Method in class io.airlift.concurrent.ExecutorServiceAdapter
- submit(Runnable, T) - Method in class io.airlift.concurrent.ExecutorServiceAdapter
- submit(Callable<T>) - Method in class io.airlift.concurrent.ExecutorServiceAdapter
- submit(T) - Method in class io.airlift.concurrent.AsyncSemaphore
T
- take() - Method in class io.airlift.concurrent.DynamicSizeBoundQueue
- ThreadLocalCache<K,
V> - Class in io.airlift.concurrent -
Provides a ThreadLocal cache with a maximum cache size per thread.
- ThreadLocalCache(int, Function<K, V>) - Constructor for class io.airlift.concurrent.ThreadLocalCache
- ThreadPoolExecutorMBean - Class in io.airlift.concurrent
- ThreadPoolExecutorMBean(ThreadPoolExecutor) - Constructor for class io.airlift.concurrent.ThreadPoolExecutorMBean
- Threads - Class in io.airlift.concurrent
- threadsNamed(String) - Static method in class io.airlift.concurrent.Threads
-
Creates a
ThreadFactorythat creates named threads using the specified naming format. - toCompletableFuture(ListenableFuture<V>) - Static method in class io.airlift.concurrent.MoreFutures
-
Converts a ListenableFuture to a CompletableFuture.
- toListenableFuture(CompletableFuture<V>) - Static method in class io.airlift.concurrent.MoreFutures
-
Converts a CompletableFuture to a ListenableFuture.
- toVoid(T) - Static method in class io.airlift.concurrent.MoreFutures
-
Converts a value to Void.
- tryGetFutureValue(Future<T>) - Static method in class io.airlift.concurrent.MoreFutures
-
Gets the current value of the future without waiting.
- tryGetFutureValue(Future<V>, int, TimeUnit) - Static method in class io.airlift.concurrent.MoreFutures
-
Waits for the the value from the future for the specified time.
- tryGetFutureValue(Future<V>, int, TimeUnit, Class<E>) - Static method in class io.airlift.concurrent.MoreFutures
-
Waits for the the value from the future for the specified time.
U
- unmodifiableFuture(CompletableFuture<V>) - Static method in class io.airlift.concurrent.MoreFutures
-
Deprecated.
- unmodifiableFuture(CompletableFuture<V>, boolean) - Static method in class io.airlift.concurrent.MoreFutures
-
Deprecated.
- unwrapCompletionException(Throwable) - Static method in class io.airlift.concurrent.MoreFutures
-
Attempts to unwrap a throwable that has been wrapped in a
CompletionException.
W
- whenAnyComplete(Iterable<? extends ListenableFuture<? extends V>>) - Static method in class io.airlift.concurrent.MoreFutures
-
Creates a future that completes when the first future completes either normally or exceptionally.
- whenAnyCompleteCancelOthers(Iterable<? extends ListenableFuture<? extends V>>) - Static method in class io.airlift.concurrent.MoreFutures
-
Creates a future that completes when the first future completes either normally or exceptionally.
All Classes and Interfaces|All Packages