Index
All Classes and Interfaces|All Packages|Serialized Form
A
- AbstractExecutionThreadService - Class in dev.mccue.guava.concurrent
-
Base class for services that can implement
#startUp,#runand#shutDownmethods. - AbstractExecutionThreadService() - Constructor for class dev.mccue.guava.concurrent.AbstractExecutionThreadService
-
Constructor for use by subclasses.
- AbstractFuture<V extends @Nullable Object> - Class in dev.mccue.guava.concurrent
-
An abstract implementation of
ListenableFuture, intended for advanced users only. - AbstractFuture() - Constructor for class dev.mccue.guava.concurrent.AbstractFuture
-
Constructor for use by subclasses.
- AbstractIdleService - Class in dev.mccue.guava.concurrent
-
Base class for services that do not need a thread while "running" but may need one during startup and shutdown.
- AbstractIdleService() - Constructor for class dev.mccue.guava.concurrent.AbstractIdleService
-
Constructor for use by subclasses.
- AbstractListeningExecutorService - Class in dev.mccue.guava.concurrent
-
Abstract
ListeningExecutorServiceimplementation that createsListenableFutureinstances for eachRunnableandCallablesubmitted to it. - AbstractListeningExecutorService() - Constructor for class dev.mccue.guava.concurrent.AbstractListeningExecutorService
- AbstractScheduledService - Class in dev.mccue.guava.concurrent
-
Base class for services that can implement
#startUpand#shutDownbut while in the "running" state need to perform a periodic task. - AbstractScheduledService() - Constructor for class dev.mccue.guava.concurrent.AbstractScheduledService
-
Constructor for use by subclasses.
- AbstractScheduledService.CustomScheduler - Class in dev.mccue.guava.concurrent
-
A
Schedulerthat provides a convenient way for theAbstractScheduledServiceto use a dynamically changing schedule. - AbstractScheduledService.CustomScheduler.Schedule - Class in dev.mccue.guava.concurrent
-
A value object that represents an absolute delay until a task should be invoked.
- AbstractScheduledService.Scheduler - Class in dev.mccue.guava.concurrent
-
A scheduler defines the policy for how the
AbstractScheduledServiceshould run its task. - AbstractService - Class in dev.mccue.guava.concurrent
-
Base class for implementing services that can handle
#doStartand#doStoprequests, responding to them with#notifyStarted()and#notifyStopped()callbacks. - AbstractService() - Constructor for class dev.mccue.guava.concurrent.AbstractService
-
Constructor for use by subclasses.
- accept(ClosingFuture.ValueAndCloser<V>) - Method in interface dev.mccue.guava.concurrent.ClosingFuture.ValueAndCloserConsumer
-
Accepts a
ValueAndCloserfor the last step in aClosingFuturepipeline. - accumulateAndGet(double, DoubleBinaryOperator) - Method in class dev.mccue.guava.concurrent.AtomicDouble
-
Atomically updates the current value with the results of applying the given function to the current and given values.
- accumulateAndGet(int, double, DoubleBinaryOperator) - Method in class dev.mccue.guava.concurrent.AtomicDoubleArray
-
Atomically updates the element at index
iwith the results of applying the given function to the current and given values. - accumulateAndGet(K, long, LongBinaryOperator) - Method in class dev.mccue.guava.concurrent.AtomicLongMap
-
Updates the value currently associated with
keyby combining it withxvia the specified accumulator function, returning the new value. - acquire() - Method in class dev.mccue.guava.concurrent.RateLimiter
-
Acquires a single permit from this
RateLimiter, blocking until the request can be granted. - acquire(int) - Method in class dev.mccue.guava.concurrent.RateLimiter
-
Acquires the given number of permits from this
RateLimiter, blocking until the request can be granted. - add(Runnable, Executor) - Method in class dev.mccue.guava.concurrent.ExecutionList
-
Adds the
Runnableand accompanyingExecutorto the list of listeners to execute. - addAndGet(double) - Method in class dev.mccue.guava.concurrent.AtomicDouble
-
Atomically adds the given value to the current value.
- addAndGet(int, double) - Method in class dev.mccue.guava.concurrent.AtomicDoubleArray
-
Atomically adds the given value to the element at index
i. - addAndGet(K, long) - Method in class dev.mccue.guava.concurrent.AtomicLongMap
-
Adds
deltato the value currently associated withkey, and returns the new value. - addCallback(FutureCallback<? super V>, Executor) - Method in class dev.mccue.guava.concurrent.FluentFuture
-
Registers separate success and failure callbacks to be run when this
Future's computation isjava.util.concurrent.Future#isDone() completeor, if the computation is already complete, immediately. - addCallback(ListenableFuture<V>, FutureCallback<? super V>, Executor) - Static method in class dev.mccue.guava.concurrent.Futures
-
Registers separate success and failure callbacks to be run when the
Future's computation isjava.util.concurrent.Future#isDone() completeor, if the computation is already complete, immediately. - addDelayedShutdownHook(ExecutorService, long, TimeUnit) - Static method in class dev.mccue.guava.concurrent.MoreExecutors
-
Add a shutdown hook to wait for thread completion in the given
ExecutorService service. - addDelayedShutdownHook(ExecutorService, Duration) - Static method in class dev.mccue.guava.concurrent.MoreExecutors
-
Add a shutdown hook to wait for thread completion in the given
ExecutorService service. - addListener(Service.Listener, Executor) - Method in class dev.mccue.guava.concurrent.AbstractExecutionThreadService
- addListener(Service.Listener, Executor) - Method in class dev.mccue.guava.concurrent.AbstractIdleService
- addListener(Service.Listener, Executor) - Method in class dev.mccue.guava.concurrent.AbstractScheduledService
- addListener(Service.Listener, Executor) - Method in class dev.mccue.guava.concurrent.AbstractService
- addListener(Service.Listener, Executor) - Method in interface dev.mccue.guava.concurrent.Service
-
Registers a
Listenerto beExecutor#execute executedon the given executor. - addListener(ServiceManager.Listener, Executor) - Method in class dev.mccue.guava.concurrent.ServiceManager
-
Registers a
Listenerto beExecutor#execute executedon the given executor. - addListener(Runnable, Executor) - Method in class dev.mccue.guava.concurrent.AbstractFuture
-
Registers a listener to be
Executor#execute(Runnable) runon the given executor. - addListener(Runnable, Executor) - Method in class dev.mccue.guava.concurrent.SettableFuture
- addListener(Runnable, Executor) - Method in class dev.mccue.guava.concurrent.ForwardingListenableFuture
- addListener(Runnable, Executor) - Method in interface dev.mccue.guava.concurrent.ListenableFuture
-
Registers a listener to be
Executor#execute(Runnable) runon the given executor. - addListener(Runnable, Executor) - Method in class dev.mccue.guava.concurrent.ListenableFutureTask
- afterDone() - Method in class dev.mccue.guava.concurrent.AbstractFuture
-
Callback method that is called exactly once after the future is completed.
- allAsList(ListenableFuture<? extends V>...) - Static method in class dev.mccue.guava.concurrent.Futures
-
Creates a new
ListenableFuturewhose value is a list containing the values of all its input futures, if all succeed. - allAsList(Iterable<? extends ListenableFuture<? extends V>>) - Static method in class dev.mccue.guava.concurrent.Futures
-
Creates a new
ListenableFuturewhose value is a list containing the values of all its input futures, if all succeed. - apply(ClosingFuture.DeferredCloser, T) - Method in interface dev.mccue.guava.concurrent.ClosingFuture.AsyncClosingFunction
-
Applies this function to an input, or throws an exception if unable to do so.
- apply(ClosingFuture.DeferredCloser, T) - Method in interface dev.mccue.guava.concurrent.ClosingFuture.ClosingFunction
-
Applies this function to an input, or throws an exception if unable to do so.
- apply(ClosingFuture.DeferredCloser, V1, V2) - Method in interface dev.mccue.guava.concurrent.ClosingFuture.Combiner2.AsyncClosingFunction2
-
Applies this function to two inputs, or throws an exception if unable to do so.
- apply(ClosingFuture.DeferredCloser, V1, V2) - Method in interface dev.mccue.guava.concurrent.ClosingFuture.Combiner2.ClosingFunction2
-
Applies this function to two inputs, or throws an exception if unable to do so.
- apply(ClosingFuture.DeferredCloser, V1, V2, V3) - Method in interface dev.mccue.guava.concurrent.ClosingFuture.Combiner3.AsyncClosingFunction3
-
Applies this function to three inputs, or throws an exception if unable to do so.
- apply(ClosingFuture.DeferredCloser, V1, V2, V3) - Method in interface dev.mccue.guava.concurrent.ClosingFuture.Combiner3.ClosingFunction3
-
Applies this function to three inputs, or throws an exception if unable to do so.
- apply(ClosingFuture.DeferredCloser, V1, V2, V3, V4) - Method in interface dev.mccue.guava.concurrent.ClosingFuture.Combiner4.AsyncClosingFunction4
-
Applies this function to four inputs, or throws an exception if unable to do so.
- apply(ClosingFuture.DeferredCloser, V1, V2, V3, V4) - Method in interface dev.mccue.guava.concurrent.ClosingFuture.Combiner4.ClosingFunction4
-
Applies this function to four inputs, or throws an exception if unable to do so.
- apply(ClosingFuture.DeferredCloser, V1, V2, V3, V4, V5) - Method in interface dev.mccue.guava.concurrent.ClosingFuture.Combiner5.AsyncClosingFunction5
-
Applies this function to five inputs, or throws an exception if unable to do so.
- apply(ClosingFuture.DeferredCloser, V1, V2, V3, V4, V5) - Method in interface dev.mccue.guava.concurrent.ClosingFuture.Combiner5.ClosingFunction5
-
Applies this function to five inputs, or throws an exception if unable to do so.
- apply(I) - Method in interface dev.mccue.guava.concurrent.AsyncFunction
-
Returns an output
Futureto use in place of the giveninput. - asAsyncCallable(Callable<T>, ListeningExecutorService) - Static method in class dev.mccue.guava.concurrent.Callables
-
Creates an
AsyncCallablefrom aCallable. - asMap() - Method in class dev.mccue.guava.concurrent.AtomicLongMap
-
Returns a live, read-only view of the map backing this
AtomicLongMap. - AsyncCallable<V extends @Nullable Object> - Interface in dev.mccue.guava.concurrent
-
Computes a value, possibly asynchronously.
- AsyncFunction<I extends @Nullable Object,
O extends @Nullable Object> - Interface in dev.mccue.guava.concurrent -
Transforms a value, possibly asynchronously.
- AtomicDouble - Class in dev.mccue.guava.concurrent
-
A
doublevalue that may be updated atomically. - AtomicDouble() - Constructor for class dev.mccue.guava.concurrent.AtomicDouble
-
Creates a new
AtomicDoublewith initial value0.0. - AtomicDouble(double) - Constructor for class dev.mccue.guava.concurrent.AtomicDouble
-
Creates a new
AtomicDoublewith the given initial value. - AtomicDoubleArray - Class in dev.mccue.guava.concurrent
-
A
doublearray in which elements may be updated atomically. - AtomicDoubleArray(double[]) - Constructor for class dev.mccue.guava.concurrent.AtomicDoubleArray
-
Creates a new
AtomicDoubleArraywith the same length as, and all elements copied from, the given array. - AtomicDoubleArray(int) - Constructor for class dev.mccue.guava.concurrent.AtomicDoubleArray
-
Creates a new
AtomicDoubleArrayof the given length, with all elements initially zero. - AtomicLongMap<K> - Class in dev.mccue.guava.concurrent
-
A map containing
longvalues that can be atomically updated. - Atomics - Class in dev.mccue.guava.concurrent
-
Static utility methods pertaining to classes in the
java.util.concurrent.atomicpackage. - awaitHealthy() - Method in class dev.mccue.guava.concurrent.ServiceManager
-
Waits for the
ServiceManagerto become#isHealthy() healthy. - awaitHealthy(long, TimeUnit) - Method in class dev.mccue.guava.concurrent.ServiceManager
-
Waits for the
ServiceManagerto become#isHealthy() healthyfor no more than the given time. - awaitHealthy(Duration) - Method in class dev.mccue.guava.concurrent.ServiceManager
-
Waits for the
ServiceManagerto become#isHealthy() healthyfor no more than the given time. - awaitRunning() - Method in class dev.mccue.guava.concurrent.AbstractExecutionThreadService
- awaitRunning() - Method in class dev.mccue.guava.concurrent.AbstractIdleService
- awaitRunning() - Method in class dev.mccue.guava.concurrent.AbstractScheduledService
- awaitRunning() - Method in class dev.mccue.guava.concurrent.AbstractService
- awaitRunning() - Method in interface dev.mccue.guava.concurrent.Service
-
Waits for the
Serviceto reach theState#RUNNING running state. - awaitRunning(long, TimeUnit) - Method in class dev.mccue.guava.concurrent.AbstractExecutionThreadService
- awaitRunning(long, TimeUnit) - Method in class dev.mccue.guava.concurrent.AbstractIdleService
- awaitRunning(long, TimeUnit) - Method in class dev.mccue.guava.concurrent.AbstractScheduledService
- awaitRunning(long, TimeUnit) - Method in class dev.mccue.guava.concurrent.AbstractService
- awaitRunning(long, TimeUnit) - Method in interface dev.mccue.guava.concurrent.Service
-
Waits for the
Serviceto reach theState#RUNNING running statefor no more than the given time. - awaitRunning(Duration) - Method in class dev.mccue.guava.concurrent.AbstractExecutionThreadService
- awaitRunning(Duration) - Method in class dev.mccue.guava.concurrent.AbstractIdleService
- awaitRunning(Duration) - Method in class dev.mccue.guava.concurrent.AbstractScheduledService
- awaitRunning(Duration) - Method in class dev.mccue.guava.concurrent.AbstractService
- awaitRunning(Duration) - Method in interface dev.mccue.guava.concurrent.Service
-
Waits for the
Serviceto reach theState#RUNNING running statefor no more than the given time. - awaitStopped() - Method in class dev.mccue.guava.concurrent.ServiceManager
-
Waits for the all the services to reach a terminal state.
- awaitStopped(long, TimeUnit) - Method in class dev.mccue.guava.concurrent.ServiceManager
-
Waits for the all the services to reach a terminal state for no more than the given time.
- awaitStopped(Duration) - Method in class dev.mccue.guava.concurrent.ServiceManager
-
Waits for the all the services to reach a terminal state for no more than the given time.
- awaitTerminated() - Method in class dev.mccue.guava.concurrent.AbstractExecutionThreadService
- awaitTerminated() - Method in class dev.mccue.guava.concurrent.AbstractIdleService
- awaitTerminated() - Method in class dev.mccue.guava.concurrent.AbstractScheduledService
- awaitTerminated() - Method in class dev.mccue.guava.concurrent.AbstractService
- awaitTerminated() - Method in interface dev.mccue.guava.concurrent.Service
-
Waits for the
Serviceto reach theState#TERMINATED terminated state. - awaitTerminated(long, TimeUnit) - Method in class dev.mccue.guava.concurrent.AbstractExecutionThreadService
- awaitTerminated(long, TimeUnit) - Method in class dev.mccue.guava.concurrent.AbstractIdleService
- awaitTerminated(long, TimeUnit) - Method in class dev.mccue.guava.concurrent.AbstractScheduledService
- awaitTerminated(long, TimeUnit) - Method in class dev.mccue.guava.concurrent.AbstractService
- awaitTerminated(long, TimeUnit) - Method in interface dev.mccue.guava.concurrent.Service
-
Waits for the
Serviceto reach a terminal state (eitherService.State#TERMINATED terminatedorService.State#FAILED failed) for no more than the given time. - awaitTerminated(Duration) - Method in class dev.mccue.guava.concurrent.AbstractExecutionThreadService
- awaitTerminated(Duration) - Method in class dev.mccue.guava.concurrent.AbstractIdleService
- awaitTerminated(Duration) - Method in class dev.mccue.guava.concurrent.AbstractScheduledService
- awaitTerminated(Duration) - Method in class dev.mccue.guava.concurrent.AbstractService
- awaitTerminated(Duration) - Method in interface dev.mccue.guava.concurrent.Service
-
Waits for the
Serviceto reach a terminal state (eitherService.State#TERMINATED terminatedorService.State#FAILED failed) for no more than the given time. - awaitTermination(long, TimeUnit) - Method in class dev.mccue.guava.concurrent.ForwardingExecutorService
- awaitTermination(Duration) - Method in interface dev.mccue.guava.concurrent.ListeningExecutorService
-
Duration-based overload of
#awaitTermination(long, TimeUnit). - awaitTerminationUninterruptibly(ExecutorService) - Static method in class dev.mccue.guava.concurrent.Uninterruptibles
-
Invokes
executor.ExecutorService#awaitTermination(long, TimeUnit) awaitTermination(long, TimeUnit)uninterruptibly with no timeout. - awaitTerminationUninterruptibly(ExecutorService, long, TimeUnit) - Static method in class dev.mccue.guava.concurrent.Uninterruptibles
-
Invokes
executor.ExecutorService#awaitTermination(long, TimeUnit) awaitTermination(long, TimeUnit)uninterruptibly. - awaitTerminationUninterruptibly(ExecutorService, Duration) - Static method in class dev.mccue.guava.concurrent.Uninterruptibles
-
Invokes
executor.ExecutorService#awaitTermination(long, TimeUnit) awaitTermination(long, TimeUnit)uninterruptibly. - awaitUninterruptibly(CountDownLatch) - Static method in class dev.mccue.guava.concurrent.Uninterruptibles
-
Invokes
latch.CountDownLatch#await() await()uninterruptibly. - awaitUninterruptibly(CountDownLatch, long, TimeUnit) - Static method in class dev.mccue.guava.concurrent.Uninterruptibles
-
Invokes
latch.CountDownLatch#await(long, TimeUnit) await(timeout, unit)uninterruptibly. - awaitUninterruptibly(CountDownLatch, Duration) - Static method in class dev.mccue.guava.concurrent.Uninterruptibles
-
Invokes
latch.CountDownLatch#await(long, TimeUnit) await(timeout, unit)uninterruptibly. - awaitUninterruptibly(Condition, long, TimeUnit) - Static method in class dev.mccue.guava.concurrent.Uninterruptibles
-
Invokes
condition.Condition#await(long, TimeUnit) await(timeout, unit)uninterruptibly. - awaitUninterruptibly(Condition, Duration) - Static method in class dev.mccue.guava.concurrent.Uninterruptibles
-
Invokes
condition.Condition#await(long, TimeUnit) await(timeout, unit)uninterruptibly.
B
- build() - Method in class dev.mccue.guava.concurrent.ThreadFactoryBuilder
-
Returns a new thread factory using the options supplied during the building process.
- bulkGet(Iterable<? extends Object>) - Method in class dev.mccue.guava.concurrent.Striped
-
Returns the stripes that correspond to the passed objects, in ascending (as per
#getAt(int)) order.
C
- call() - Method in interface dev.mccue.guava.concurrent.AsyncCallable
-
Computes a result
Future. - call(ClosingFuture.Combiner.CombiningCallable<V>, Executor) - Method in class dev.mccue.guava.concurrent.ClosingFuture.Combiner
-
Returns a new
ClosingFuturepipeline step derived from the inputs by applying a combining function to their values. - call(ClosingFuture.Combiner2.ClosingFunction2<V1, V2, U>, Executor) - Method in class dev.mccue.guava.concurrent.ClosingFuture.Combiner2
-
Returns a new
ClosingFuturepipeline step derived from the inputs by applying a combining function to their values. - call(ClosingFuture.Combiner3.ClosingFunction3<V1, V2, V3, U>, Executor) - Method in class dev.mccue.guava.concurrent.ClosingFuture.Combiner3
-
Returns a new
ClosingFuturepipeline step derived from the inputs by applying a combining function to their values. - call(ClosingFuture.Combiner4.ClosingFunction4<V1, V2, V3, V4, U>, Executor) - Method in class dev.mccue.guava.concurrent.ClosingFuture.Combiner4
-
Returns a new
ClosingFuturepipeline step derived from the inputs by applying a combining function to their values. - call(ClosingFuture.Combiner5.ClosingFunction5<V1, V2, V3, V4, V5, U>, Executor) - Method in class dev.mccue.guava.concurrent.ClosingFuture.Combiner5
-
Returns a new
ClosingFuturepipeline step derived from the inputs by applying a combining function to their values. - call(ClosingFuture.DeferredCloser) - Method in interface dev.mccue.guava.concurrent.ClosingFuture.AsyncClosingCallable
-
Computes a result, or throws an exception if unable to do so.
- call(ClosingFuture.DeferredCloser) - Method in interface dev.mccue.guava.concurrent.ClosingFuture.ClosingCallable
-
Computes a result, or throws an exception if unable to do so.
- call(ClosingFuture.DeferredCloser, ClosingFuture.Peeker) - Method in interface dev.mccue.guava.concurrent.ClosingFuture.Combiner.AsyncCombiningCallable
-
Computes a
ClosingFutureresult, or throws an exception if unable to do so. - call(ClosingFuture.DeferredCloser, ClosingFuture.Peeker) - Method in interface dev.mccue.guava.concurrent.ClosingFuture.Combiner.CombiningCallable
-
Computes a result, or throws an exception if unable to do so.
- call(Callable<C>, Executor) - Method in class dev.mccue.guava.concurrent.Futures.FutureCombiner
-
Creates the
ListenableFuturewhich will return the result of callingCallable#callincombinerwhen all futures complete, using the specifiedexecutor. - Callables - Class in dev.mccue.guava.concurrent
-
Static utility methods pertaining to the
Callableinterface. - callAsync(AsyncCallable<C>, Executor) - Method in class dev.mccue.guava.concurrent.Futures.FutureCombiner
-
Creates the
ListenableFuturewhich will return the result of callingAsyncCallable#callincombinerwhen all futures complete, using the specifiedexecutor. - callAsync(ClosingFuture.Combiner.AsyncCombiningCallable<V>, Executor) - Method in class dev.mccue.guava.concurrent.ClosingFuture.Combiner
-
Returns a new
ClosingFuturepipeline step derived from the inputs by applying aClosingFuture-returning function to their values. - callAsync(ClosingFuture.Combiner2.AsyncClosingFunction2<V1, V2, U>, Executor) - Method in class dev.mccue.guava.concurrent.ClosingFuture.Combiner2
-
Returns a new
ClosingFuturepipeline step derived from the inputs by applying aClosingFuture-returning function to their values. - callAsync(ClosingFuture.Combiner3.AsyncClosingFunction3<V1, V2, V3, U>, Executor) - Method in class dev.mccue.guava.concurrent.ClosingFuture.Combiner3
-
Returns a new
ClosingFuturepipeline step derived from the inputs by applying aClosingFuture-returning function to their values. - callAsync(ClosingFuture.Combiner4.AsyncClosingFunction4<V1, V2, V3, V4, U>, Executor) - Method in class dev.mccue.guava.concurrent.ClosingFuture.Combiner4
-
Returns a new
ClosingFuturepipeline step derived from the inputs by applying aClosingFuture-returning function to their values. - callAsync(ClosingFuture.Combiner5.AsyncClosingFunction5<V1, V2, V3, V4, V5, U>, Executor) - Method in class dev.mccue.guava.concurrent.ClosingFuture.Combiner5
-
Returns a new
ClosingFuturepipeline step derived from the inputs by applying aClosingFuture-returning function to their values. - callUninterruptiblyWithTimeout(Callable<T>, long, TimeUnit) - Method in class dev.mccue.guava.concurrent.FakeTimeLimiter
- callUninterruptiblyWithTimeout(Callable<T>, long, TimeUnit) - Method in class dev.mccue.guava.concurrent.SimpleTimeLimiter
- callUninterruptiblyWithTimeout(Callable<T>, long, TimeUnit) - Method in interface dev.mccue.guava.concurrent.TimeLimiter
-
Invokes a specified Callable, timing out after the specified time limit.
- callUninterruptiblyWithTimeout(Callable<T>, Duration) - Method in interface dev.mccue.guava.concurrent.TimeLimiter
-
Invokes a specified Callable, timing out after the specified time limit.
- callWithTimeout(Callable<T>, long, TimeUnit) - Method in class dev.mccue.guava.concurrent.FakeTimeLimiter
- callWithTimeout(Callable<T>, long, TimeUnit) - Method in class dev.mccue.guava.concurrent.SimpleTimeLimiter
- callWithTimeout(Callable<T>, long, TimeUnit) - Method in interface dev.mccue.guava.concurrent.TimeLimiter
-
Invokes a specified Callable, timing out after the specified time limit.
- callWithTimeout(Callable<T>, Duration) - Method in interface dev.mccue.guava.concurrent.TimeLimiter
-
Invokes a specified Callable, timing out after the specified time limit.
- cancel(boolean) - Method in class dev.mccue.guava.concurrent.AbstractFuture
- cancel(boolean) - Method in class dev.mccue.guava.concurrent.SettableFuture
- cancel(boolean) - Method in class dev.mccue.guava.concurrent.ClosingFuture
-
Attempts to cancel execution of this step.
- cancel(boolean) - Method in class dev.mccue.guava.concurrent.ForwardingFuture
- catching(ListenableFuture<? extends V>, Class<X>, Function<? super X, ? extends V>, Executor) - Static method in class dev.mccue.guava.concurrent.Futures
-
Returns a
Futurewhose result is taken from the given primaryinputor, if the primary input fails with the givenexceptionType, from the result provided by thefallback. - catching(Class<X>, Function<? super X, ? extends V>, Executor) - Method in class dev.mccue.guava.concurrent.FluentFuture
-
Returns a
Futurewhose result is taken from thisFutureor, if thisFuturefails with the givenexceptionType, from the result provided by thefallback. - catching(Class<X>, ClosingFuture.ClosingFunction<? super X, ? extends V>, Executor) - Method in class dev.mccue.guava.concurrent.ClosingFuture
-
Returns a new
ClosingFuturepipeline step derived from this one by applying a function to its exception if it is an instance of a given exception type. - catchingAsync(ListenableFuture<? extends V>, Class<X>, AsyncFunction<? super X, ? extends V>, Executor) - Static method in class dev.mccue.guava.concurrent.Futures
-
Returns a
Futurewhose result is taken from the given primaryinputor, if the primary input fails with the givenexceptionType, from the result provided by thefallback. - catchingAsync(Class<X>, AsyncFunction<? super X, ? extends V>, Executor) - Method in class dev.mccue.guava.concurrent.FluentFuture
-
Returns a
Futurewhose result is taken from thisFutureor, if thisFuturefails with the givenexceptionType, from the result provided by thefallback. - catchingAsync(Class<X>, ClosingFuture.AsyncClosingFunction<? super X, ? extends V>, Executor) - Method in class dev.mccue.guava.concurrent.ClosingFuture
-
Returns a new
ClosingFuturepipeline step derived from this one by applying a function that returns aClosingFutureto its exception if it is an instance of a given exception type. - clear() - Method in class dev.mccue.guava.concurrent.AtomicLongMap
-
Removes all of the mappings from this map.
- closeAsync() - Method in class dev.mccue.guava.concurrent.ClosingFuture.ValueAndCloser
-
Starts closing all closeable objects captured during the
ClosingFuture's asynchronous operation on theExecutors specified by calls toDeferredCloser#eventuallyClose(Object, Executor). - ClosingFuture<V extends @Nullable Object> - Class in dev.mccue.guava.concurrent
-
A step in a pipeline of an asynchronous computation.
- ClosingFuture.AsyncClosingCallable<V extends @Nullable Object> - Interface in dev.mccue.guava.concurrent
-
An operation that computes a
ClosingFutureof a result. - ClosingFuture.AsyncClosingFunction<T extends @Nullable Object,
U extends @Nullable Object> - Interface in dev.mccue.guava.concurrent -
A function from an input to a
ClosingFutureof a result. - ClosingFuture.ClosingCallable<V extends @Nullable Object> - Interface in dev.mccue.guava.concurrent
-
An operation that computes a result.
- ClosingFuture.ClosingFunction<T extends @Nullable Object,
U extends @Nullable Object> - Interface in dev.mccue.guava.concurrent -
A function from an input to a result.
- ClosingFuture.Combiner - Class in dev.mccue.guava.concurrent
-
A builder of a
ClosingFuturestep that is derived from more than one input step. - ClosingFuture.Combiner.AsyncCombiningCallable<V extends @Nullable Object> - Interface in dev.mccue.guava.concurrent
-
An operation that returns a
ClosingFutureresult and may throw an exception. - ClosingFuture.Combiner.CombiningCallable<V extends @Nullable Object> - Interface in dev.mccue.guava.concurrent
-
An operation that returns a result and may throw an exception.
- ClosingFuture.Combiner2<V1 extends @Nullable Object,
V2 extends @Nullable Object> - Class in dev.mccue.guava.concurrent -
A generic
Combinerthat lets you use a lambda or method reference to combine twoClosingFutures. - ClosingFuture.Combiner2.AsyncClosingFunction2<V1 extends @Nullable Object,
V2 extends @Nullable Object, U extends @Nullable Object> - Interface in dev.mccue.guava.concurrent -
A function that returns a
ClosingFuturewhen applied to the values of the two futures passed to#whenAllSucceed(ClosingFuture, ClosingFuture). - ClosingFuture.Combiner2.ClosingFunction2<V1 extends @Nullable Object,
V2 extends @Nullable Object, U extends @Nullable Object> - Interface in dev.mccue.guava.concurrent -
A function that returns a value when applied to the values of the two futures passed to
#whenAllSucceed(ClosingFuture, ClosingFuture). - ClosingFuture.Combiner3<V1 extends @Nullable Object,
V2 extends @Nullable Object, V3 extends @Nullable Object> - Class in dev.mccue.guava.concurrent -
A generic
Combinerthat lets you use a lambda or method reference to combine threeClosingFutures. - ClosingFuture.Combiner3.AsyncClosingFunction3<V1 extends @Nullable Object,
V2 extends @Nullable Object, V3 extends @Nullable Object, U extends @Nullable Object> - Interface in dev.mccue.guava.concurrent -
A function that returns a
ClosingFuturewhen applied to the values of the three futures passed to#whenAllSucceed(ClosingFuture, ClosingFuture, ClosingFuture). - ClosingFuture.Combiner3.ClosingFunction3<V1 extends @Nullable Object,
V2 extends @Nullable Object, V3 extends @Nullable Object, U extends @Nullable Object> - Interface in dev.mccue.guava.concurrent -
A function that returns a value when applied to the values of the three futures passed to
#whenAllSucceed(ClosingFuture, ClosingFuture, ClosingFuture). - ClosingFuture.Combiner4<V1 extends @Nullable Object,
V2 extends @Nullable Object, V3 extends @Nullable Object, V4 extends @Nullable Object> - Class in dev.mccue.guava.concurrent -
A generic
Combinerthat lets you use a lambda or method reference to combine fourClosingFutures. - ClosingFuture.Combiner4.AsyncClosingFunction4<V1 extends @Nullable Object,
V2 extends @Nullable Object, V3 extends @Nullable Object, V4 extends @Nullable Object, U extends @Nullable Object> - Interface in dev.mccue.guava.concurrent -
A function that returns a
ClosingFuturewhen applied to the values of the four futures passed to#whenAllSucceed(ClosingFuture, ClosingFuture, ClosingFuture, ClosingFuture). - ClosingFuture.Combiner4.ClosingFunction4<V1 extends @Nullable Object,
V2 extends @Nullable Object, V3 extends @Nullable Object, V4 extends @Nullable Object, U extends @Nullable Object> - Interface in dev.mccue.guava.concurrent -
A function that returns a value when applied to the values of the four futures passed to
#whenAllSucceed(ClosingFuture, ClosingFuture, ClosingFuture, ClosingFuture). - ClosingFuture.Combiner5<V1 extends @Nullable Object,
V2 extends @Nullable Object, V3 extends @Nullable Object, V4 extends @Nullable Object, V5 extends @Nullable Object> - Class in dev.mccue.guava.concurrent -
A generic
Combinerthat lets you use a lambda or method reference to combine fiveClosingFutures. - ClosingFuture.Combiner5.AsyncClosingFunction5<V1 extends @Nullable Object,
V2 extends @Nullable Object, V3 extends @Nullable Object, V4 extends @Nullable Object, V5 extends @Nullable Object, U extends @Nullable Object> - Interface in dev.mccue.guava.concurrent -
A function that returns a
ClosingFuturewhen applied to the values of the five futures passed to#whenAllSucceed(ClosingFuture, ClosingFuture, ClosingFuture, ClosingFuture, ClosingFuture). - ClosingFuture.Combiner5.ClosingFunction5<V1 extends @Nullable Object,
V2 extends @Nullable Object, V3 extends @Nullable Object, V4 extends @Nullable Object, V5 extends @Nullable Object, U extends @Nullable Object> - Interface in dev.mccue.guava.concurrent -
A function that returns a value when applied to the values of the five futures passed to
#whenAllSucceed(ClosingFuture, ClosingFuture, ClosingFuture, ClosingFuture, ClosingFuture). - ClosingFuture.DeferredCloser - Class in dev.mccue.guava.concurrent
-
An object that can capture objects to be closed later, when a
ClosingFuturepipeline is done. - ClosingFuture.Peeker - Class in dev.mccue.guava.concurrent
-
An object that can return the value of the
ClosingFutures that are passed to#whenAllComplete(Iterable)or#whenAllSucceed(Iterable). - ClosingFuture.ValueAndCloser<V extends @Nullable Object> - Class in dev.mccue.guava.concurrent
-
An object that holds the final result of an asynchronous
ClosingFutureoperation and allows the user to close all the closeable objects that were captured during it for later closing. - ClosingFuture.ValueAndCloserConsumer<V extends @Nullable Object> - Interface in dev.mccue.guava.concurrent
-
Represents an operation that accepts a
ValueAndCloserfor the last step in aClosingFuturepipeline. - compareAndSet(double, double) - Method in class dev.mccue.guava.concurrent.AtomicDouble
-
Atomically sets the value to the given updated value if the current value is bitwise equal to the expected value.
- compareAndSet(int, double, double) - Method in class dev.mccue.guava.concurrent.AtomicDoubleArray
-
Atomically sets the element at position
ito the given updated value if the current value is bitwise equal to the expected value. - containsKey(Object) - Method in class dev.mccue.guava.concurrent.AtomicLongMap
-
Returns true if this map contains a mapping for the specified key.
- create() - Static method in class dev.mccue.guava.concurrent.AtomicLongMap
-
Creates an
AtomicLongMap. - create() - Static method in class dev.mccue.guava.concurrent.ExecutionSequencer
-
Creates a new instance.
- create() - Static method in class dev.mccue.guava.concurrent.SettableFuture
-
Creates a new
SettableFuturethat can be completed or cancelled by a later method call. - create(double) - Static method in class dev.mccue.guava.concurrent.RateLimiter
-
Creates a
RateLimiterwith the specified stable throughput, given as "permits per second" (commonly referred to as QPS, queries per second). - create(double, long, TimeUnit) - Static method in class dev.mccue.guava.concurrent.RateLimiter
-
Creates a
RateLimiterwith the specified stable throughput, given as "permits per second" (commonly referred to as QPS, queries per second), and a warmup period, during which theRateLimitersmoothly ramps up its rate, until it reaches its maximum rate at the end of the period (as long as there are enough requests to saturate it). - create(double, Duration) - Static method in class dev.mccue.guava.concurrent.RateLimiter
-
Creates a
RateLimiterwith the specified stable throughput, given as "permits per second" (commonly referred to as QPS, queries per second), and a warmup period, during which theRateLimitersmoothly ramps up its rate, until it reaches its maximum rate at the end of the period (as long as there are enough requests to saturate it). - create(Runnable, V) - Static method in class dev.mccue.guava.concurrent.ListenableFutureTask
-
Creates a
ListenableFutureTaskthat will upon running, execute the givenRunnable, and arrange thatgetwill return the given result on successful completion. - create(Callable<V>) - Static method in class dev.mccue.guava.concurrent.ListenableFutureTask
-
Creates a
ListenableFutureTaskthat will upon running, execute the givenCallable. - create(ExecutorService) - Static method in class dev.mccue.guava.concurrent.SimpleTimeLimiter
-
Creates a TimeLimiter instance using the given executor service to execute method calls.
- create(Map<? extends K, ? extends Long>) - Static method in class dev.mccue.guava.concurrent.AtomicLongMap
-
Creates an
AtomicLongMapwith the same mappings as the specifiedMap. - CustomScheduler() - Constructor for class dev.mccue.guava.concurrent.AbstractScheduledService.CustomScheduler
- CycleDetectingLockFactory - Class in dev.mccue.guava.concurrent
-
The
CycleDetectingLockFactorycreatesReentrantLockinstances andReentrantReadWriteLockinstances that detect potential deadlock by checking for cycles in lock acquisition order. - CycleDetectingLockFactory.Policies - Enum in dev.mccue.guava.concurrent
-
Pre-defined
Policyimplementations. - CycleDetectingLockFactory.Policy - Interface in dev.mccue.guava.concurrent
-
Encapsulates the action to be taken when a potential deadlock is encountered.
- CycleDetectingLockFactory.PotentialDeadlockException - Exception in dev.mccue.guava.concurrent
-
Represents a detected cycle in lock acquisition ordering.
- CycleDetectingLockFactory.WithExplicitOrdering<E extends Enum<E>> - Class in dev.mccue.guava.concurrent
-
A
CycleDetectingLockFactory.WithExplicitOrderingprovides the additional enforcement of an application-specified ordering of lock acquisitions.
D
- decrementAndGet(K) - Method in class dev.mccue.guava.concurrent.AtomicLongMap
-
Decrements by one the value currently associated with
key, and returns the new value. - delegate() - Method in class dev.mccue.guava.concurrent.ForwardingBlockingDeque
- delegate() - Method in class dev.mccue.guava.concurrent.ForwardingBlockingQueue
- delegate() - Method in class dev.mccue.guava.concurrent.ForwardingExecutorService
- delegate() - Method in class dev.mccue.guava.concurrent.ForwardingFuture
- delegate() - Method in class dev.mccue.guava.concurrent.ForwardingFuture.SimpleForwardingFuture
- delegate() - Method in class dev.mccue.guava.concurrent.ForwardingListenableFuture
- delegate() - Method in class dev.mccue.guava.concurrent.ForwardingListenableFuture.SimpleForwardingListenableFuture
- delegate() - Method in class dev.mccue.guava.concurrent.ForwardingListeningExecutorService
- dev.mccue.guava.concurrent - module dev.mccue.guava.concurrent
- dev.mccue.guava.concurrent - package dev.mccue.guava.concurrent
-
Concurrency utilities.
- directExecutor() - Static method in class dev.mccue.guava.concurrent.MoreExecutors
-
Returns an
Executorthat runs each task in the thread that invokesExecutor#execute execute, as inThreadPoolExecutor.CallerRunsPolicy. - DISABLED - Enum constant in enum dev.mccue.guava.concurrent.CycleDetectingLockFactory.Policies
-
Disables cycle detection.
- doCancelStart() - Method in class dev.mccue.guava.concurrent.AbstractService
-
This method is called by
#stopAsyncwhen the service is still starting (i.e. - done() - Method in class dev.mccue.guava.concurrent.ListenableFutureTask
-
Internal implementation detail used to invoke the listeners.
- doNothing() - Static method in class dev.mccue.guava.concurrent.Runnables
-
Returns a
Runnableinstance that does nothing when run. - doStart() - Method in class dev.mccue.guava.concurrent.AbstractService
-
This method is called by
#startAsyncto initiate service startup. - doStop() - Method in class dev.mccue.guava.concurrent.AbstractService
-
This method should be used to initiate service shutdown.
- doubleValue() - Method in class dev.mccue.guava.concurrent.AtomicDouble
-
Returns the value of this
AtomicDoubleas adouble. - drainTo(Collection<? super E>) - Method in class dev.mccue.guava.concurrent.ForwardingBlockingDeque
- drainTo(Collection<? super E>) - Method in class dev.mccue.guava.concurrent.ForwardingBlockingQueue
- drainTo(Collection<? super E>, int) - Method in class dev.mccue.guava.concurrent.ForwardingBlockingDeque
- drainTo(Collection<? super E>, int) - Method in class dev.mccue.guava.concurrent.ForwardingBlockingQueue
E
- enter() - Method in class dev.mccue.guava.concurrent.Monitor
-
Enters this monitor.
- enter(long, TimeUnit) - Method in class dev.mccue.guava.concurrent.Monitor
-
Enters this monitor.
- enter(Duration) - Method in class dev.mccue.guava.concurrent.Monitor
-
Enters this monitor.
- enterIf(Monitor.Guard) - Method in class dev.mccue.guava.concurrent.Monitor
-
Enters this monitor if the guard is satisfied.
- enterIf(Monitor.Guard, long, TimeUnit) - Method in class dev.mccue.guava.concurrent.Monitor
-
Enters this monitor if the guard is satisfied.
- enterIf(Monitor.Guard, Duration) - Method in class dev.mccue.guava.concurrent.Monitor
-
Enters this monitor if the guard is satisfied.
- enterIfInterruptibly(Monitor.Guard) - Method in class dev.mccue.guava.concurrent.Monitor
-
Enters this monitor if the guard is satisfied.
- enterIfInterruptibly(Monitor.Guard, long, TimeUnit) - Method in class dev.mccue.guava.concurrent.Monitor
-
Enters this monitor if the guard is satisfied.
- enterIfInterruptibly(Monitor.Guard, Duration) - Method in class dev.mccue.guava.concurrent.Monitor
-
Enters this monitor if the guard is satisfied.
- enterInterruptibly() - Method in class dev.mccue.guava.concurrent.Monitor
-
Enters this monitor.
- enterInterruptibly(long, TimeUnit) - Method in class dev.mccue.guava.concurrent.Monitor
-
Enters this monitor.
- enterInterruptibly(Duration) - Method in class dev.mccue.guava.concurrent.Monitor
-
Enters this monitor.
- enterWhen(Monitor.Guard) - Method in class dev.mccue.guava.concurrent.Monitor
-
Enters this monitor when the guard is satisfied.
- enterWhen(Monitor.Guard, long, TimeUnit) - Method in class dev.mccue.guava.concurrent.Monitor
-
Enters this monitor when the guard is satisfied.
- enterWhen(Monitor.Guard, Duration) - Method in class dev.mccue.guava.concurrent.Monitor
-
Enters this monitor when the guard is satisfied.
- enterWhenUninterruptibly(Monitor.Guard) - Method in class dev.mccue.guava.concurrent.Monitor
-
Enters this monitor when the guard is satisfied.
- enterWhenUninterruptibly(Monitor.Guard, long, TimeUnit) - Method in class dev.mccue.guava.concurrent.Monitor
-
Enters this monitor when the guard is satisfied.
- enterWhenUninterruptibly(Monitor.Guard, Duration) - Method in class dev.mccue.guava.concurrent.Monitor
-
Enters this monitor when the guard is satisfied.
- eventuallyClose(C, Executor) - Method in class dev.mccue.guava.concurrent.ClosingFuture.DeferredCloser
-
Captures an object to be closed when a
ClosingFuturepipeline is done. - eventuallyClosing(ListenableFuture<C>, Executor) - Static method in class dev.mccue.guava.concurrent.ClosingFuture
-
Deprecated.
- execute() - Method in class dev.mccue.guava.concurrent.ExecutionList
-
Runs this execution list, executing all existing pairs in the order they were added.
- execute(Runnable) - Method in class dev.mccue.guava.concurrent.ForwardingExecutorService
- ExecutionError - Error in dev.mccue.guava.concurrent
-
Errorvariant ofjava.util.concurrent.ExecutionException. - ExecutionError() - Constructor for error dev.mccue.guava.concurrent.ExecutionError
-
Deprecated.Prefer
ExecutionError(Error)a constructor that accepts a cause: Users of this class typically expect for instances to have a non-null cause. At the moment, you can usually still preserve behavior by passing an explicitnullcause. Note, however, that passing an explicitnullcause prevents anyone from calling#initCauselater, so it is not quite equivalent to using a constructor that omits the cause. - ExecutionError(Error) - Constructor for error dev.mccue.guava.concurrent.ExecutionError
-
Creates a new instance with
nullas its detail message and the given cause. - ExecutionError(String) - Constructor for error dev.mccue.guava.concurrent.ExecutionError
-
Deprecated.Prefer
ExecutionError(String, Error)a constructor that accepts a cause: Users of this class typically expect for instances to have a non-null cause. At the moment, you can usually still preserve behavior by passing an explicitnullcause. Note, however, that passing an explicitnullcause prevents anyone from calling#initCauselater, so it is not quite equivalent to using a constructor that omits the cause. - ExecutionError(String, Error) - Constructor for error dev.mccue.guava.concurrent.ExecutionError
-
Creates a new instance with the given detail message and cause.
- ExecutionList - Class in dev.mccue.guava.concurrent
-
A support class for
ListenableFutureimplementations to manage their listeners. - ExecutionList() - Constructor for class dev.mccue.guava.concurrent.ExecutionList
-
Creates a new, empty
ExecutionList. - ExecutionSequencer - Class in dev.mccue.guava.concurrent
-
Serializes execution of tasks, somewhat like an "asynchronous
synchronizedblock." Each#submit enqueuedcallable will not be submitted to its associated executor until the previous callable has returned -- and, if the previous callable was anAsyncCallable, not until theFutureit returned isFuture#isDone done(successful, failed, or cancelled). - executor() - Method in class dev.mccue.guava.concurrent.AbstractExecutionThreadService
-
Returns the
Executorthat will be used to run this service. - executor() - Method in class dev.mccue.guava.concurrent.AbstractIdleService
-
Returns the
Executorthat will be used to run this service. - executor() - Method in class dev.mccue.guava.concurrent.AbstractScheduledService
-
Returns the
ScheduledExecutorServicethat will be used to execute the#startUp,#runOneIterationand#shutDownmethods.
F
- failed(Service.State, Throwable) - Method in class dev.mccue.guava.concurrent.Service.Listener
-
Called when the service transitions to the
State#FAILED FAILEDstate. - FAILED - Enum constant in enum dev.mccue.guava.concurrent.Service.State
-
A service in this state has encountered a problem and may not be operational.
- failure(Service) - Method in class dev.mccue.guava.concurrent.ServiceManager.Listener
-
Called when a component service has
State#FAILED failed. - failureCause() - Method in class dev.mccue.guava.concurrent.AbstractExecutionThreadService
- failureCause() - Method in class dev.mccue.guava.concurrent.AbstractIdleService
- failureCause() - Method in class dev.mccue.guava.concurrent.AbstractScheduledService
- failureCause() - Method in class dev.mccue.guava.concurrent.AbstractService
- failureCause() - Method in interface dev.mccue.guava.concurrent.Service
-
Returns the
Throwablethat caused this service to fail. - FakeTimeLimiter - Class in dev.mccue.guava.concurrent
-
A TimeLimiter implementation which actually does not attempt to limit time at all.
- FakeTimeLimiter() - Constructor for class dev.mccue.guava.concurrent.FakeTimeLimiter
- finishToFuture() - Method in class dev.mccue.guava.concurrent.ClosingFuture
-
Marks this step as the last step in the
ClosingFuturepipeline. - finishToValueAndCloser(ClosingFuture.ValueAndCloserConsumer<? super V>, Executor) - Method in class dev.mccue.guava.concurrent.ClosingFuture
-
Marks this step as the last step in the
ClosingFuturepipeline. - floatValue() - Method in class dev.mccue.guava.concurrent.AtomicDouble
-
Returns the value of this
AtomicDoubleas afloatafter a narrowing primitive conversion. - FluentFuture<V extends @Nullable Object> - Class in dev.mccue.guava.concurrent
-
A
ListenableFuturethat supports fluent chains of operations. - ForwardingBlockingDeque<E> - Class in dev.mccue.guava.concurrent
-
A
BlockingDequewhich forwards all its method calls to anotherBlockingDeque. - ForwardingBlockingDeque() - Constructor for class dev.mccue.guava.concurrent.ForwardingBlockingDeque
-
Constructor for use by subclasses.
- ForwardingBlockingQueue<E> - Class in dev.mccue.guava.concurrent
-
A
BlockingQueuewhich forwards all its method calls to anotherBlockingQueue. - ForwardingBlockingQueue() - Constructor for class dev.mccue.guava.concurrent.ForwardingBlockingQueue
-
Constructor for use by subclasses.
- ForwardingExecutorService - Class in dev.mccue.guava.concurrent
-
An executor service which forwards all its method calls to another executor service.
- ForwardingExecutorService() - Constructor for class dev.mccue.guava.concurrent.ForwardingExecutorService
-
Constructor for use by subclasses.
- ForwardingFuture<V extends @Nullable Object> - Class in dev.mccue.guava.concurrent
-
A
Futurewhich forwards all its method calls to another future. - ForwardingFuture() - Constructor for class dev.mccue.guava.concurrent.ForwardingFuture
-
Constructor for use by subclasses.
- ForwardingFuture.SimpleForwardingFuture<V extends @Nullable Object> - Class in dev.mccue.guava.concurrent
-
A simplified version of
ForwardingFuturewhere subclasses can pass in an already constructedFutureas the delegate. - ForwardingListenableFuture<V extends @Nullable Object> - Class in dev.mccue.guava.concurrent
-
A
ListenableFuturewhich forwards all its method calls to another future. - ForwardingListenableFuture() - Constructor for class dev.mccue.guava.concurrent.ForwardingListenableFuture
-
Constructor for use by subclasses.
- ForwardingListenableFuture.SimpleForwardingListenableFuture<V extends @Nullable Object> - Class in dev.mccue.guava.concurrent
-
A simplified version of
ForwardingListenableFuturewhere subclasses can pass in an already constructedListenableFutureas the delegate. - ForwardingListeningExecutorService - Class in dev.mccue.guava.concurrent
-
A listening executor service which forwards all its method calls to another listening executor service.
- ForwardingListeningExecutorService() - Constructor for class dev.mccue.guava.concurrent.ForwardingListeningExecutorService
-
Constructor for use by subclasses.
- from(FluentFuture<V>) - Static method in class dev.mccue.guava.concurrent.FluentFuture
-
Deprecated.no need to use this
- from(ListenableFuture<V>) - Static method in class dev.mccue.guava.concurrent.ClosingFuture
-
Starts a
ClosingFuturepipeline with aListenableFuture. - from(ListenableFuture<V>) - Static method in class dev.mccue.guava.concurrent.FluentFuture
-
Converts the given
ListenableFutureto an equivalentFluentFuture. - FutureCallback<V extends @Nullable Object> - Interface in dev.mccue.guava.concurrent
-
A callback for accepting the results of a
java.util.concurrent.Futurecomputation asynchronously. - Futures - Class in dev.mccue.guava.concurrent
-
Static utility methods pertaining to the
Futureinterface. - Futures.FutureCombiner<V extends @Nullable Object> - Class in dev.mccue.guava.concurrent
-
A helper to create a new
ListenableFuturewhose result is generated from a combination of input futures.
G
- get() - Method in class dev.mccue.guava.concurrent.AbstractFuture
- get() - Method in class dev.mccue.guava.concurrent.SettableFuture
- get() - Method in class dev.mccue.guava.concurrent.AtomicDouble
-
Gets the current value.
- get() - Method in class dev.mccue.guava.concurrent.ClosingFuture.ValueAndCloser
-
Returns the final value of the associated
ClosingFuture, or throws an exception asFuture#get()would. - get() - Method in class dev.mccue.guava.concurrent.ForwardingFuture
- get(int) - Method in class dev.mccue.guava.concurrent.AtomicDoubleArray
-
Gets the current value at position
i. - get(long, TimeUnit) - Method in class dev.mccue.guava.concurrent.AbstractFuture
- get(long, TimeUnit) - Method in class dev.mccue.guava.concurrent.SettableFuture
- get(long, TimeUnit) - Method in class dev.mccue.guava.concurrent.ForwardingFuture
- get(long, TimeUnit) - Method in class dev.mccue.guava.concurrent.ListenableFutureTask
- get(Object) - Method in class dev.mccue.guava.concurrent.Striped
-
Returns the stripe that corresponds to the passed key.
- get(K) - Method in class dev.mccue.guava.concurrent.AtomicLongMap
-
Returns the value associated with
key, or zero if there is no value associated withkey. - getAndAccumulate(double, DoubleBinaryOperator) - Method in class dev.mccue.guava.concurrent.AtomicDouble
-
Atomically updates the current value with the results of applying the given function to the current and given values.
- getAndAccumulate(int, double, DoubleBinaryOperator) - Method in class dev.mccue.guava.concurrent.AtomicDoubleArray
-
Atomically updates the element at index
iwith the results of applying the given function to the current and given values. - getAndAccumulate(K, long, LongBinaryOperator) - Method in class dev.mccue.guava.concurrent.AtomicLongMap
-
Updates the value currently associated with
keyby combining it withxvia the specified accumulator function, returning the old value. - getAndAdd(double) - Method in class dev.mccue.guava.concurrent.AtomicDouble
-
Atomically adds the given value to the current value.
- getAndAdd(int, double) - Method in class dev.mccue.guava.concurrent.AtomicDoubleArray
-
Atomically adds the given value to the element at index
i. - getAndAdd(K, long) - Method in class dev.mccue.guava.concurrent.AtomicLongMap
-
Adds
deltato the value currently associated withkey, and returns the old value. - getAndDecrement(K) - Method in class dev.mccue.guava.concurrent.AtomicLongMap
-
Decrements by one the value currently associated with
key, and returns the old value. - getAndIncrement(K) - Method in class dev.mccue.guava.concurrent.AtomicLongMap
-
Increments by one the value currently associated with
key, and returns the old value. - getAndSet(double) - Method in class dev.mccue.guava.concurrent.AtomicDouble
-
Atomically sets to the given value and returns the old value.
- getAndSet(int, double) - Method in class dev.mccue.guava.concurrent.AtomicDoubleArray
-
Atomically sets the element at position
ito the given value and returns the old value. - getAndUpdate(int, DoubleUnaryOperator) - Method in class dev.mccue.guava.concurrent.AtomicDoubleArray
-
Atomically updates the element at index
iwith the results of applying the given function to the current value. - getAndUpdate(DoubleUnaryOperator) - Method in class dev.mccue.guava.concurrent.AtomicDouble
-
Atomically updates the current value with the results of applying the given function.
- getAndUpdate(K, LongUnaryOperator) - Method in class dev.mccue.guava.concurrent.AtomicLongMap
-
Updates the value currently associated with
keywith the specified function, and returns the old value. - getAt(int) - Method in class dev.mccue.guava.concurrent.Striped
-
Returns the stripe at the specified index.
- getChecked(Future<V>, Class<X>) - Static method in class dev.mccue.guava.concurrent.Futures
-
Returns the result of
Future#get(), converting most exceptions to a new instance of the given checked exception type. - getChecked(Future<V>, Class<X>, long, TimeUnit) - Static method in class dev.mccue.guava.concurrent.Futures
-
Returns the result of
Future#get(long, TimeUnit), converting most exceptions to a new instance of the given checked exception type. - getChecked(Future<V>, Class<X>, Duration) - Static method in class dev.mccue.guava.concurrent.Futures
-
Returns the result of
Future#get(long, TimeUnit), converting most exceptions to a new instance of the given checked exception type. - getConflictingStackTrace() - Method in exception dev.mccue.guava.concurrent.CycleDetectingLockFactory.PotentialDeadlockException
- getDone(ClosingFuture<D>) - Method in class dev.mccue.guava.concurrent.ClosingFuture.Peeker
-
Returns the value of
closingFuture. - getDone(Future<V>) - Static method in class dev.mccue.guava.concurrent.Futures
-
Returns the result of the input
Future, which must have already completed. - getExitingExecutorService(ThreadPoolExecutor) - Static method in class dev.mccue.guava.concurrent.MoreExecutors
-
Converts the given ThreadPoolExecutor into an ExecutorService that exits when the application is complete.
- getExitingExecutorService(ThreadPoolExecutor, long, TimeUnit) - Static method in class dev.mccue.guava.concurrent.MoreExecutors
-
Converts the given ThreadPoolExecutor into an ExecutorService that exits when the application is complete.
- getExitingExecutorService(ThreadPoolExecutor, Duration) - Static method in class dev.mccue.guava.concurrent.MoreExecutors
-
Converts the given ThreadPoolExecutor into an ExecutorService that exits when the application is complete.
- getExitingScheduledExecutorService(ScheduledThreadPoolExecutor) - Static method in class dev.mccue.guava.concurrent.MoreExecutors
-
Converts the given ScheduledThreadPoolExecutor into a ScheduledExecutorService that exits when the application is complete.
- getExitingScheduledExecutorService(ScheduledThreadPoolExecutor, long, TimeUnit) - Static method in class dev.mccue.guava.concurrent.MoreExecutors
-
Converts the given ScheduledThreadPoolExecutor into a ScheduledExecutorService that exits when the application is complete.
- getExitingScheduledExecutorService(ScheduledThreadPoolExecutor, Duration) - Static method in class dev.mccue.guava.concurrent.MoreExecutors
-
Converts the given ScheduledThreadPoolExecutor into a ScheduledExecutorService that exits when the application is complete.
- getMessage() - Method in exception dev.mccue.guava.concurrent.CycleDetectingLockFactory.PotentialDeadlockException
-
Appends the chain of messages from the
conflictingStackTraceto the originalmessage. - getNextSchedule() - Method in class dev.mccue.guava.concurrent.AbstractScheduledService.CustomScheduler
-
Calculates the time at which to next invoke the task.
- getOccupiedDepth() - Method in class dev.mccue.guava.concurrent.Monitor
-
Returns the number of times the current thread has entered this monitor in excess of the number of times it has left.
- getQueueLength() - Method in class dev.mccue.guava.concurrent.Monitor
-
Returns an estimate of the number of threads waiting to enter this monitor.
- getRate() - Method in class dev.mccue.guava.concurrent.RateLimiter
-
Returns the stable rate (as
permits per seconds) with which thisRateLimiteris configured with. - getUnchecked(Future<V>) - Static method in class dev.mccue.guava.concurrent.Futures
-
Returns the result of calling
Future#get()uninterruptibly on a task known not to throw a checked exception. - getUninterruptibly(Future<V>) - Static method in class dev.mccue.guava.concurrent.Uninterruptibles
-
Invokes
future.Future#get() get()uninterruptibly. - getUninterruptibly(Future<V>, long, TimeUnit) - Static method in class dev.mccue.guava.concurrent.Uninterruptibles
-
Invokes
future.Future#get(long, TimeUnit) get(timeout, unit)uninterruptibly. - getUninterruptibly(Future<V>, Duration) - Static method in class dev.mccue.guava.concurrent.Uninterruptibles
-
Invokes
future.Future#get(long, TimeUnit) get(timeout, unit)uninterruptibly. - getWaitQueueLength(Monitor.Guard) - Method in class dev.mccue.guava.concurrent.Monitor
-
Returns an estimate of the number of threads waiting for the given guard to become satisfied.
- Guard(Monitor) - Constructor for class dev.mccue.guava.concurrent.Monitor.Guard
H
- handlePotentialDeadlock(CycleDetectingLockFactory.PotentialDeadlockException) - Method in interface dev.mccue.guava.concurrent.CycleDetectingLockFactory.Policy
-
Called when a potential deadlock is encountered.
- hasQueuedThread(Thread) - Method in class dev.mccue.guava.concurrent.Monitor
-
Queries whether the given thread is waiting to enter this monitor.
- hasQueuedThreads() - Method in class dev.mccue.guava.concurrent.Monitor
-
Returns whether any threads are waiting to enter this monitor.
- hasWaiters(Monitor.Guard) - Method in class dev.mccue.guava.concurrent.Monitor
-
Queries whether any threads are waiting for the given guard to become satisfied.
- healthy() - Method in class dev.mccue.guava.concurrent.ServiceManager.Listener
-
Called when the service initially becomes healthy.
I
- immediateCancelledFuture() - Static method in class dev.mccue.guava.concurrent.Futures
-
Creates a
ListenableFuturewhich is cancelled immediately upon construction, so thatisCancelled()always returnstrue. - immediateFailedFuture(Throwable) - Static method in class dev.mccue.guava.concurrent.Futures
-
Returns a
ListenableFuturewhich has an exception set immediately upon construction. - immediateFuture(V) - Static method in class dev.mccue.guava.concurrent.Futures
-
Creates a
ListenableFuturewhich has its value set immediately upon construction. - immediateVoidFuture() - Static method in class dev.mccue.guava.concurrent.Futures
-
Returns a successful
ListenableFuture<Void>. - inCompletionOrder(Iterable<? extends ListenableFuture<? extends T>>) - Static method in class dev.mccue.guava.concurrent.Futures
-
Returns a list of delegate futures that correspond to the futures received in the order that they complete.
- incrementAndGet(K) - Method in class dev.mccue.guava.concurrent.AtomicLongMap
-
Increments by one the value currently associated with
key, and returns the new value. - inputs - Variable in class dev.mccue.guava.concurrent.ClosingFuture.Combiner
- interruptTask() - Method in class dev.mccue.guava.concurrent.AbstractFuture
-
Subclasses can override this method to implement interruption of the future's computation.
- intValue() - Method in class dev.mccue.guava.concurrent.AtomicDouble
-
Returns the value of this
AtomicDoubleas anintafter a narrowing primitive conversion. - invokeAll(Collection<? extends Callable<T>>) - Method in class dev.mccue.guava.concurrent.ForwardingExecutorService
- invokeAll(Collection<? extends Callable<T>>) - Method in interface dev.mccue.guava.concurrent.ListeningExecutorService
- invokeAll(Collection<? extends Callable<T>>, long, TimeUnit) - Method in class dev.mccue.guava.concurrent.ForwardingExecutorService
- invokeAll(Collection<? extends Callable<T>>, long, TimeUnit) - Method in interface dev.mccue.guava.concurrent.ListeningExecutorService
- invokeAll(Collection<? extends Callable<T>>, Duration) - Method in interface dev.mccue.guava.concurrent.ListeningExecutorService
-
Duration-based overload of
#invokeAll(Collection, long, TimeUnit). - invokeAny(Collection<? extends Callable<T>>) - Method in class dev.mccue.guava.concurrent.ForwardingExecutorService
- invokeAny(Collection<? extends Callable<T>>, long, TimeUnit) - Method in class dev.mccue.guava.concurrent.ForwardingExecutorService
- invokeAny(Collection<? extends Callable<T>>, Duration) - Method in interface dev.mccue.guava.concurrent.ListeningExecutorService
-
Duration-based overload of
#invokeAny(Collection, long, TimeUnit). - isCancelled() - Method in class dev.mccue.guava.concurrent.AbstractFuture
- isCancelled() - Method in class dev.mccue.guava.concurrent.SettableFuture
- isCancelled() - Method in class dev.mccue.guava.concurrent.ForwardingFuture
- isDone() - Method in class dev.mccue.guava.concurrent.AbstractFuture
- isDone() - Method in class dev.mccue.guava.concurrent.SettableFuture
- isDone() - Method in class dev.mccue.guava.concurrent.ForwardingFuture
- isEmpty() - Method in class dev.mccue.guava.concurrent.AtomicLongMap
-
Returns
trueif this map contains no key-value mappings. - isFair() - Method in class dev.mccue.guava.concurrent.Monitor
-
Returns whether this monitor is using a fair ordering policy.
- isHealthy() - Method in class dev.mccue.guava.concurrent.ServiceManager
-
Returns true if all services are currently in the
State#RUNNING runningstate. - isOccupied() - Method in class dev.mccue.guava.concurrent.Monitor
-
Returns whether this monitor is occupied by any thread.
- isOccupiedByCurrentThread() - Method in class dev.mccue.guava.concurrent.Monitor
-
Returns whether the current thread is occupying this monitor (has entered more times than it has left).
- isRunning() - Method in class dev.mccue.guava.concurrent.AbstractExecutionThreadService
- isRunning() - Method in class dev.mccue.guava.concurrent.AbstractIdleService
- isRunning() - Method in class dev.mccue.guava.concurrent.AbstractScheduledService
- isRunning() - Method in class dev.mccue.guava.concurrent.AbstractService
- isRunning() - Method in interface dev.mccue.guava.concurrent.Service
-
Returns
trueif this service isState#RUNNING running. - isSatisfied() - Method in class dev.mccue.guava.concurrent.Monitor.Guard
-
Evaluates this guard's boolean condition.
- isShutdown() - Method in class dev.mccue.guava.concurrent.ForwardingExecutorService
- isTerminated() - Method in class dev.mccue.guava.concurrent.ForwardingExecutorService
J
- JdkFutureAdapters - Class in dev.mccue.guava.concurrent
-
Utilities necessary for working with libraries that supply plain
Futureinstances. - joinUninterruptibly(Thread) - Static method in class dev.mccue.guava.concurrent.Uninterruptibles
-
Invokes
toJoin.Thread#join() join()uninterruptibly. - joinUninterruptibly(Thread, long, TimeUnit) - Static method in class dev.mccue.guava.concurrent.Uninterruptibles
-
Invokes
unit.TimeUnit#timedJoin(Thread, long) timedJoin(toJoin, timeout)uninterruptibly. - joinUninterruptibly(Thread, Duration) - Static method in class dev.mccue.guava.concurrent.Uninterruptibles
-
Invokes
unit.TimeUnit#timedJoin(Thread, long) timedJoin(toJoin, timeout)uninterruptibly.
L
- lazySet(double) - Method in class dev.mccue.guava.concurrent.AtomicDouble
-
Eventually sets to the given value.
- lazySet(int, double) - Method in class dev.mccue.guava.concurrent.AtomicDoubleArray
-
Eventually sets the element at position
ito the given value. - lazyTransform(Future<I>, Function<? super I, ? extends O>) - Static method in class dev.mccue.guava.concurrent.Futures
-
Like
#transform(ListenableFuture, Function, Executor)except that the transformationfunctionis invoked on each call toFuture#get() get()on the returned future. - lazyWeakLock(int) - Static method in class dev.mccue.guava.concurrent.Striped
-
Creates a
Striped<Lock>with lazily initialized, weakly referenced locks. - lazyWeakReadWriteLock(int) - Static method in class dev.mccue.guava.concurrent.Striped
-
Creates a
Striped<ReadWriteLock>with lazily initialized, weakly referenced read-write locks. - lazyWeakSemaphore(int, int) - Static method in class dev.mccue.guava.concurrent.Striped
-
Creates a
Striped<Semaphore>with lazily initialized, weakly referenced semaphores, with the specified number of permits. - leave() - Method in class dev.mccue.guava.concurrent.Monitor
-
Leaves this monitor.
- length() - Method in class dev.mccue.guava.concurrent.AtomicDoubleArray
-
Returns the length of the array.
- ListenableFuture<V extends @Nullable Object> - Interface in dev.mccue.guava.concurrent
-
A
Futurethat accepts completion listeners. - ListenableFutureTask<V extends @Nullable Object> - Class in dev.mccue.guava.concurrent
-
A
FutureTaskthat also implements theListenableFutureinterface. - ListenableScheduledFuture<V extends @Nullable Object> - Interface in dev.mccue.guava.concurrent
-
Helper interface to implement both
ListenableFutureandScheduledFuture. - Listener() - Constructor for class dev.mccue.guava.concurrent.Service.Listener
- Listener() - Constructor for class dev.mccue.guava.concurrent.ServiceManager.Listener
- listeningDecorator(ExecutorService) - Static method in class dev.mccue.guava.concurrent.MoreExecutors
-
Creates an
ExecutorServicewhosesubmitandinvokeAllmethods submitListenableFutureTaskinstances to the given delegate executor. - listeningDecorator(ScheduledExecutorService) - Static method in class dev.mccue.guava.concurrent.MoreExecutors
-
Creates a
ScheduledExecutorServicewhosesubmitandinvokeAllmethods submitListenableFutureTaskinstances to the given delegate executor. - ListeningExecutorService - Interface in dev.mccue.guava.concurrent
-
An
ExecutorServicethat returnsListenableFutureinstances. - ListeningScheduledExecutorService - Interface in dev.mccue.guava.concurrent
-
A
ScheduledExecutorServicethat returnsListenableFutureinstances from itsExecutorServicemethods. - listenInPoolThread(Future<V>) - Static method in class dev.mccue.guava.concurrent.JdkFutureAdapters
-
Assigns a thread to the given
Futureto provideListenableFuturefunctionality. - listenInPoolThread(Future<V>, Executor) - Static method in class dev.mccue.guava.concurrent.JdkFutureAdapters
-
Submits a blocking task for the given
Futureto provideListenableFuturefunctionality. - lock(int) - Static method in class dev.mccue.guava.concurrent.Striped
-
Creates a
Striped<Lock>with eagerly initialized, strongly referenced locks. - longValue() - Method in class dev.mccue.guava.concurrent.AtomicDouble
-
Returns the value of this
AtomicDoubleas alongafter a narrowing primitive conversion.
M
- Monitor - Class in dev.mccue.guava.concurrent
-
A synchronization abstraction supporting waiting on arbitrary boolean conditions.
- Monitor() - Constructor for class dev.mccue.guava.concurrent.Monitor
-
Creates a monitor with a non-fair (but fast) ordering policy.
- Monitor(boolean) - Constructor for class dev.mccue.guava.concurrent.Monitor
-
Creates a monitor with the given ordering policy.
- Monitor.Guard - Class in dev.mccue.guava.concurrent
-
A boolean condition for which a thread may wait.
- MoreExecutors - Class in dev.mccue.guava.concurrent
-
Factory and utility methods for
java.util.concurrent.Executor,ExecutorService, andjava.util.concurrent.ThreadFactory.
N
- NEW - Enum constant in enum dev.mccue.guava.concurrent.Service.State
-
A service in this state is inactive.
- newDirectExecutorService() - Static method in class dev.mccue.guava.concurrent.MoreExecutors
-
Creates an executor service that runs each task in the thread that invokes
execute/submit, as inThreadPoolExecutor.CallerRunsPolicy. - newFixedDelaySchedule(long, long, TimeUnit) - Static method in class dev.mccue.guava.concurrent.AbstractScheduledService.Scheduler
-
Returns a
Schedulerthat schedules the task using theScheduledExecutorService#scheduleWithFixedDelaymethod. - newFixedDelaySchedule(Duration, Duration) - Static method in class dev.mccue.guava.concurrent.AbstractScheduledService.Scheduler
-
Returns a
Schedulerthat schedules the task using theScheduledExecutorService#scheduleWithFixedDelaymethod. - newFixedRateSchedule(long, long, TimeUnit) - Static method in class dev.mccue.guava.concurrent.AbstractScheduledService.Scheduler
-
Returns a
Schedulerthat schedules the task using theScheduledExecutorService#scheduleAtFixedRatemethod. - newFixedRateSchedule(Duration, Duration) - Static method in class dev.mccue.guava.concurrent.AbstractScheduledService.Scheduler
-
Returns a
Schedulerthat schedules the task using theScheduledExecutorService#scheduleAtFixedRatemethod. - newGuard(BooleanSupplier) - Method in class dev.mccue.guava.concurrent.Monitor
-
Creates a new
Guard guardfor this monitor. - newInstance(CycleDetectingLockFactory.Policy) - Static method in class dev.mccue.guava.concurrent.CycleDetectingLockFactory
-
Creates a new factory with the specified policy.
- newInstanceWithExplicitOrdering(Class<E>, CycleDetectingLockFactory.Policy) - Static method in class dev.mccue.guava.concurrent.CycleDetectingLockFactory
-
Creates a
CycleDetectingLockFactory.WithExplicitOrdering<E>. - newProxy(T, Class<T>, long, TimeUnit) - Method in class dev.mccue.guava.concurrent.FakeTimeLimiter
- newProxy(T, Class<T>, long, TimeUnit) - Method in class dev.mccue.guava.concurrent.SimpleTimeLimiter
- newProxy(T, Class<T>, long, TimeUnit) - Method in interface dev.mccue.guava.concurrent.TimeLimiter
-
Returns an instance of
interfaceTypethat delegates all method calls to thetargetobject, enforcing the specified time limit on each call. - newProxy(T, Class<T>, Duration) - Method in interface dev.mccue.guava.concurrent.TimeLimiter
-
Returns an instance of
interfaceTypethat delegates all method calls to thetargetobject, enforcing the specified time limit on each call. - newReentrantLock(E) - Method in class dev.mccue.guava.concurrent.CycleDetectingLockFactory.WithExplicitOrdering
-
Equivalent to
newReentrantLock(rank, false). - newReentrantLock(E, boolean) - Method in class dev.mccue.guava.concurrent.CycleDetectingLockFactory.WithExplicitOrdering
-
Creates a
ReentrantLockwith the given fairness policy and rank. - newReentrantLock(String) - Method in class dev.mccue.guava.concurrent.CycleDetectingLockFactory
-
Equivalent to
newReentrantLock(lockName, false). - newReentrantLock(String, boolean) - Method in class dev.mccue.guava.concurrent.CycleDetectingLockFactory
-
Creates a
ReentrantLockwith the given fairness policy. - newReentrantReadWriteLock(E) - Method in class dev.mccue.guava.concurrent.CycleDetectingLockFactory.WithExplicitOrdering
-
Equivalent to
newReentrantReadWriteLock(rank, false). - newReentrantReadWriteLock(E, boolean) - Method in class dev.mccue.guava.concurrent.CycleDetectingLockFactory.WithExplicitOrdering
-
Creates a
ReentrantReadWriteLockwith the given fairness policy and rank. - newReentrantReadWriteLock(String) - Method in class dev.mccue.guava.concurrent.CycleDetectingLockFactory
-
Equivalent to
newReentrantReadWriteLock(lockName, false). - newReentrantReadWriteLock(String, boolean) - Method in class dev.mccue.guava.concurrent.CycleDetectingLockFactory
-
Creates a
ReentrantReadWriteLockwith the given fairness policy. - newReference() - Static method in class dev.mccue.guava.concurrent.Atomics
-
Creates an
AtomicReferenceinstance with no initial value. - newReference(V) - Static method in class dev.mccue.guava.concurrent.Atomics
-
Creates an
AtomicReferenceinstance with the given initial value. - newReferenceArray(int) - Static method in class dev.mccue.guava.concurrent.Atomics
-
Creates an
AtomicReferenceArrayinstance of given length. - newReferenceArray(E[]) - Static method in class dev.mccue.guava.concurrent.Atomics
-
Creates an
AtomicReferenceArrayinstance with the same length as, and all elements copied from, the given array. - newSequentialExecutor(Executor) - Static method in class dev.mccue.guava.concurrent.MoreExecutors
-
Returns an
Executorthat runs each task executed sequentially, such that no two tasks are running concurrently. - newTaskFor(Runnable, T) - Method in class dev.mccue.guava.concurrent.AbstractListeningExecutorService
- newTaskFor(Callable<T>) - Method in class dev.mccue.guava.concurrent.AbstractListeningExecutorService
- nonCancellationPropagating(ListenableFuture<V>) - Static method in class dev.mccue.guava.concurrent.Futures
-
Returns a
ListenableFuturewhose result is set from the supplied future when it completes. - notifyFailed(Throwable) - Method in class dev.mccue.guava.concurrent.AbstractService
-
Invoke this method to transition the service to the
State#FAILED. - notifyStarted() - Method in class dev.mccue.guava.concurrent.AbstractService
-
Implementing classes should invoke this method once their service has started.
- notifyStopped() - Method in class dev.mccue.guava.concurrent.AbstractService
-
Implementing classes should invoke this method once their service has stopped.
O
- offer(E, long, TimeUnit) - Method in class dev.mccue.guava.concurrent.ForwardingBlockingDeque
- offer(E, long, TimeUnit) - Method in class dev.mccue.guava.concurrent.ForwardingBlockingQueue
- offerFirst(E, long, TimeUnit) - Method in class dev.mccue.guava.concurrent.ForwardingBlockingDeque
- offerLast(E, long, TimeUnit) - Method in class dev.mccue.guava.concurrent.ForwardingBlockingDeque
- onFailure(Throwable) - Method in interface dev.mccue.guava.concurrent.FutureCallback
-
Invoked when a
Futurecomputation fails or is canceled. - onSuccess(V) - Method in interface dev.mccue.guava.concurrent.FutureCallback
-
Invoked with the result of the
Futurecomputation when it is successful.
P
- pendingToString() - Method in class dev.mccue.guava.concurrent.AbstractFuture
-
Provide a human-readable explanation of why this future has not yet completed.
- platformThreadFactory() - Static method in class dev.mccue.guava.concurrent.MoreExecutors
-
Returns a default thread factory used to create new threads.
- poll(long, TimeUnit) - Method in class dev.mccue.guava.concurrent.ForwardingBlockingDeque
- poll(long, TimeUnit) - Method in class dev.mccue.guava.concurrent.ForwardingBlockingQueue
- pollFirst(long, TimeUnit) - Method in class dev.mccue.guava.concurrent.ForwardingBlockingDeque
- pollLast(long, TimeUnit) - Method in class dev.mccue.guava.concurrent.ForwardingBlockingDeque
- put(E) - Method in class dev.mccue.guava.concurrent.ForwardingBlockingDeque
- put(E) - Method in class dev.mccue.guava.concurrent.ForwardingBlockingQueue
- put(K, long) - Method in class dev.mccue.guava.concurrent.AtomicLongMap
-
Associates
newValuewithkeyin this map, and returns the value previously associated withkey, or zero if there was no such value. - putAll(Map<? extends K, ? extends Long>) - Method in class dev.mccue.guava.concurrent.AtomicLongMap
-
Copies all of the mappings from the specified map to this map.
- putFirst(E) - Method in class dev.mccue.guava.concurrent.ForwardingBlockingDeque
- putLast(E) - Method in class dev.mccue.guava.concurrent.ForwardingBlockingDeque
- putUninterruptibly(BlockingQueue<E>, E) - Static method in class dev.mccue.guava.concurrent.Uninterruptibles
-
Invokes
queue.BlockingQueue#put(Object) put(element)uninterruptibly.
R
- RateLimiter - Class in dev.mccue.guava.concurrent
-
A rate limiter.
- readWriteLock(int) - Static method in class dev.mccue.guava.concurrent.Striped
-
Creates a
Striped<ReadWriteLock>with eagerly initialized, strongly referenced read-write locks. - remainingCapacity() - Method in class dev.mccue.guava.concurrent.ForwardingBlockingDeque
- remainingCapacity() - Method in class dev.mccue.guava.concurrent.ForwardingBlockingQueue
- remove(K) - Method in class dev.mccue.guava.concurrent.AtomicLongMap
-
Removes and returns the value associated with
key. - removeAllZeros() - Method in class dev.mccue.guava.concurrent.AtomicLongMap
-
Removes all mappings from this map whose values are zero.
- removeIfZero(K) - Method in class dev.mccue.guava.concurrent.AtomicLongMap
-
Atomically remove
keyfrom the map iff its associated value is 0. - returning(T) - Static method in class dev.mccue.guava.concurrent.Callables
-
Creates a
Callablewhich immediately returns a preset value each time it is called. - run() - Method in class dev.mccue.guava.concurrent.AbstractExecutionThreadService
-
Run the service.
- run(Runnable, Executor) - Method in class dev.mccue.guava.concurrent.Futures.FutureCombiner
-
Creates the
ListenableFuturewhich will return the result of runningcombinerwhen all Futures complete. - Runnables - Class in dev.mccue.guava.concurrent
-
Static utility methods pertaining to the
Runnableinterface. - running() - Method in class dev.mccue.guava.concurrent.Service.Listener
-
Called when the service transitions from
State#STARTING STARTINGtoState#RUNNING RUNNING. - RUNNING - Enum constant in enum dev.mccue.guava.concurrent.Service.State
-
A service in this state is operational.
- runOneIteration() - Method in class dev.mccue.guava.concurrent.AbstractScheduledService
-
Run one iteration of the scheduled task.
- runUninterruptiblyWithTimeout(Runnable, long, TimeUnit) - Method in class dev.mccue.guava.concurrent.FakeTimeLimiter
- runUninterruptiblyWithTimeout(Runnable, long, TimeUnit) - Method in class dev.mccue.guava.concurrent.SimpleTimeLimiter
- runUninterruptiblyWithTimeout(Runnable, long, TimeUnit) - Method in interface dev.mccue.guava.concurrent.TimeLimiter
-
Invokes a specified Runnable, timing out after the specified time limit.
- runUninterruptiblyWithTimeout(Runnable, Duration) - Method in interface dev.mccue.guava.concurrent.TimeLimiter
-
Invokes a specified Runnable, timing out after the specified time limit.
- runWithTimeout(Runnable, long, TimeUnit) - Method in class dev.mccue.guava.concurrent.FakeTimeLimiter
- runWithTimeout(Runnable, long, TimeUnit) - Method in class dev.mccue.guava.concurrent.SimpleTimeLimiter
- runWithTimeout(Runnable, long, TimeUnit) - Method in interface dev.mccue.guava.concurrent.TimeLimiter
-
Invokes a specified Runnable, timing out after the specified time limit.
- runWithTimeout(Runnable, Duration) - Method in interface dev.mccue.guava.concurrent.TimeLimiter
-
Invokes a specified Runnable, timing out after the specified time limit.
S
- schedule(Runnable, long, TimeUnit) - Method in interface dev.mccue.guava.concurrent.ListeningScheduledExecutorService
- schedule(Runnable, Duration) - Method in interface dev.mccue.guava.concurrent.ListeningScheduledExecutorService
-
Duration-based overload of
#schedule(Runnable, long, TimeUnit). - schedule(Callable<V>, long, TimeUnit) - Method in interface dev.mccue.guava.concurrent.ListeningScheduledExecutorService
- schedule(Callable<V>, Duration) - Method in interface dev.mccue.guava.concurrent.ListeningScheduledExecutorService
-
Duration-based overload of
#schedule(Callable, long, TimeUnit). - Schedule(long, TimeUnit) - Constructor for class dev.mccue.guava.concurrent.AbstractScheduledService.CustomScheduler.Schedule
- Schedule(Duration) - Constructor for class dev.mccue.guava.concurrent.AbstractScheduledService.CustomScheduler.Schedule
- scheduleAsync(AsyncCallable<O>, long, TimeUnit, ScheduledExecutorService) - Static method in class dev.mccue.guava.concurrent.Futures
-
Schedules
callableon the specifiedexecutor, returning aFuture. - scheduleAsync(AsyncCallable<O>, Duration, ScheduledExecutorService) - Static method in class dev.mccue.guava.concurrent.Futures
-
Schedules
callableon the specifiedexecutor, returning aFuture. - scheduleAtFixedRate(Runnable, long, long, TimeUnit) - Method in interface dev.mccue.guava.concurrent.ListeningScheduledExecutorService
- scheduleAtFixedRate(Runnable, Duration, Duration) - Method in interface dev.mccue.guava.concurrent.ListeningScheduledExecutorService
-
Duration-based overload of
#scheduleAtFixedRate(Runnable, long, long, TimeUnit). - scheduler() - Method in class dev.mccue.guava.concurrent.AbstractScheduledService
-
Returns the
Schedulerobject used to configure this service. - scheduleWithFixedDelay(Runnable, long, long, TimeUnit) - Method in interface dev.mccue.guava.concurrent.ListeningScheduledExecutorService
- scheduleWithFixedDelay(Runnable, Duration, Duration) - Method in interface dev.mccue.guava.concurrent.ListeningScheduledExecutorService
-
Duration-based overload of
#scheduleWithFixedDelay(Runnable, long, long, TimeUnit). - semaphore(int, int) - Static method in class dev.mccue.guava.concurrent.Striped
-
Creates a
Striped<Semaphore>with eagerly initialized, strongly referenced semaphores, with the specified number of permits. - Service - Interface in dev.mccue.guava.concurrent
-
An object with an operational state, plus asynchronous
#startAsync()and#stopAsync()lifecycle methods to transition between states. - Service.Listener - Class in dev.mccue.guava.concurrent
-
A listener for the various state changes that a
Servicegoes through in its lifecycle. - Service.State - Enum in dev.mccue.guava.concurrent
-
The lifecycle states of a service.
- ServiceManager - Class in dev.mccue.guava.concurrent
-
A manager for monitoring and controlling a set of
Service services. - ServiceManager(Iterable<? extends Service>) - Constructor for class dev.mccue.guava.concurrent.ServiceManager
-
Constructs a new instance for managing the given services.
- ServiceManager.Listener - Class in dev.mccue.guava.concurrent
-
A listener for the aggregate state changes of the services that are under management.
- serviceName() - Method in class dev.mccue.guava.concurrent.AbstractExecutionThreadService
-
Returns the name of this service.
- serviceName() - Method in class dev.mccue.guava.concurrent.AbstractIdleService
-
Returns the name of this service.
- serviceName() - Method in class dev.mccue.guava.concurrent.AbstractScheduledService
-
Returns the name of this service.
- servicesByState() - Method in class dev.mccue.guava.concurrent.ServiceManager
-
Provides a snapshot of the current state of all the services under management.
- set(double) - Method in class dev.mccue.guava.concurrent.AtomicDouble
-
Sets to the given value.
- set(int, double) - Method in class dev.mccue.guava.concurrent.AtomicDoubleArray
-
Atomically sets the element at position
ito the given value. - set(V) - Method in class dev.mccue.guava.concurrent.AbstractFuture
-
Sets the result of this
Futureunless thisFuturehas already been cancelled or set (including#setFuture set asynchronously). - set(V) - Method in class dev.mccue.guava.concurrent.SettableFuture
- setDaemon(boolean) - Method in class dev.mccue.guava.concurrent.ThreadFactoryBuilder
-
Sets daemon or not for new threads created with this ThreadFactory.
- setException(Throwable) - Method in class dev.mccue.guava.concurrent.AbstractFuture
-
Sets the failed result of this
Futureunless thisFuturehas already been cancelled or set (including#setFuture set asynchronously). - setException(Throwable) - Method in class dev.mccue.guava.concurrent.SettableFuture
- setFuture(ListenableFuture<? extends V>) - Method in class dev.mccue.guava.concurrent.AbstractFuture
-
Sets the result of this
Futureto match the supplied inputFutureonce the suppliedFutureis done, unless thisFuturehas already been cancelled or set (including "set asynchronously," defined below). - setFuture(ListenableFuture<? extends V>) - Method in class dev.mccue.guava.concurrent.SettableFuture
- setNameFormat(String) - Method in class dev.mccue.guava.concurrent.ThreadFactoryBuilder
-
Sets the naming format to use when naming threads (
Thread#setName) which are created with this ThreadFactory. - setPriority(int) - Method in class dev.mccue.guava.concurrent.ThreadFactoryBuilder
-
Sets the priority for new threads created with this ThreadFactory.
- setRate(double) - Method in class dev.mccue.guava.concurrent.RateLimiter
-
Updates the stable rate of this
RateLimiter, that is, thepermitsPerSecondargument provided in the factory method that constructed theRateLimiter. - SettableFuture<V extends @Nullable Object> - Class in dev.mccue.guava.concurrent
-
A
ListenableFuturewhose result can be set by a#set(Object),#setException(Throwable)or#setFuture(ListenableFuture)call. - setThreadFactory(ThreadFactory) - Method in class dev.mccue.guava.concurrent.ThreadFactoryBuilder
-
Sets the backing
ThreadFactoryfor new threads created with this ThreadFactory. - setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler) - Method in class dev.mccue.guava.concurrent.ThreadFactoryBuilder
-
Sets the
UncaughtExceptionHandlerfor new threads created with this ThreadFactory. - shutdown() - Method in class dev.mccue.guava.concurrent.ForwardingExecutorService
- shutDown() - Method in class dev.mccue.guava.concurrent.AbstractExecutionThreadService
-
Stop the service.
- shutDown() - Method in class dev.mccue.guava.concurrent.AbstractIdleService
-
Stop the service.
- shutDown() - Method in class dev.mccue.guava.concurrent.AbstractScheduledService
-
Stop the service.
- shutdownAndAwaitTermination(ExecutorService, long, TimeUnit) - Static method in class dev.mccue.guava.concurrent.MoreExecutors
-
Shuts down the given executor service gradually, first disabling new submissions and later, if necessary, cancelling remaining tasks.
- shutdownAndAwaitTermination(ExecutorService, Duration) - Static method in class dev.mccue.guava.concurrent.MoreExecutors
-
Shuts down the given executor service gradually, first disabling new submissions and later, if necessary, cancelling remaining tasks.
- shutdownNow() - Method in class dev.mccue.guava.concurrent.ForwardingExecutorService
- SimpleForwardingFuture(Future<V>) - Constructor for class dev.mccue.guava.concurrent.ForwardingFuture.SimpleForwardingFuture
- SimpleForwardingListenableFuture(ListenableFuture<V>) - Constructor for class dev.mccue.guava.concurrent.ForwardingListenableFuture.SimpleForwardingListenableFuture
- SimpleTimeLimiter - Class in dev.mccue.guava.concurrent
-
A TimeLimiter that runs method calls in the background using an
ExecutorService. - size() - Method in class dev.mccue.guava.concurrent.AtomicLongMap
-
Returns the number of key-value mappings in this map.
- size() - Method in class dev.mccue.guava.concurrent.Striped
-
Returns the total number of stripes in this instance.
- sleepUninterruptibly(long, TimeUnit) - Static method in class dev.mccue.guava.concurrent.Uninterruptibles
-
Invokes
unit.TimeUnit#sleep(long) sleep(sleepFor)uninterruptibly. - sleepUninterruptibly(Duration) - Static method in class dev.mccue.guava.concurrent.Uninterruptibles
-
Invokes
unit.TimeUnit#sleep(long) sleep(sleepFor)uninterruptibly. - startAsync() - Method in class dev.mccue.guava.concurrent.AbstractExecutionThreadService
- startAsync() - Method in class dev.mccue.guava.concurrent.AbstractIdleService
- startAsync() - Method in class dev.mccue.guava.concurrent.AbstractScheduledService
- startAsync() - Method in class dev.mccue.guava.concurrent.AbstractService
- startAsync() - Method in interface dev.mccue.guava.concurrent.Service
-
If the service state is
State#NEW, this initiates service startup and returns immediately. - startAsync() - Method in class dev.mccue.guava.concurrent.ServiceManager
-
Initiates service
Service#startAsync startupon all the services being managed. - starting() - Method in class dev.mccue.guava.concurrent.Service.Listener
-
Called when the service transitions from
State#NEW NEWtoState#STARTING STARTING. - STARTING - Enum constant in enum dev.mccue.guava.concurrent.Service.State
-
A service in this state is transitioning to
#RUNNING. - startUp() - Method in class dev.mccue.guava.concurrent.AbstractExecutionThreadService
-
Start the service.
- startUp() - Method in class dev.mccue.guava.concurrent.AbstractIdleService
-
Start the service.
- startUp() - Method in class dev.mccue.guava.concurrent.AbstractScheduledService
-
Start the service.
- startupDurations() - Method in class dev.mccue.guava.concurrent.ServiceManager
-
Returns the service load times.
- startupTimes() - Method in class dev.mccue.guava.concurrent.ServiceManager
-
Returns the service load times.
- state() - Method in class dev.mccue.guava.concurrent.AbstractExecutionThreadService
- state() - Method in class dev.mccue.guava.concurrent.AbstractIdleService
- state() - Method in class dev.mccue.guava.concurrent.AbstractScheduledService
- state() - Method in class dev.mccue.guava.concurrent.AbstractService
- state() - Method in interface dev.mccue.guava.concurrent.Service
-
Returns the lifecycle state of the service.
- statusFuture() - Method in class dev.mccue.guava.concurrent.ClosingFuture
-
Returns a future that finishes when this step does.
- stopAsync() - Method in class dev.mccue.guava.concurrent.AbstractExecutionThreadService
- stopAsync() - Method in class dev.mccue.guava.concurrent.AbstractIdleService
- stopAsync() - Method in class dev.mccue.guava.concurrent.AbstractScheduledService
- stopAsync() - Method in class dev.mccue.guava.concurrent.AbstractService
- stopAsync() - Method in interface dev.mccue.guava.concurrent.Service
-
If the service is
State#STARTING startingorState#RUNNING running, this initiates service shutdown and returns immediately. - stopAsync() - Method in class dev.mccue.guava.concurrent.ServiceManager
-
Initiates service
Service#stopAsync shutdownif necessary on all the services being managed. - stopped() - Method in class dev.mccue.guava.concurrent.ServiceManager.Listener
-
Called when the all of the component services have reached a terminal state, either
State#TERMINATED terminatedorState#FAILED failed. - stopping(Service.State) - Method in class dev.mccue.guava.concurrent.Service.Listener
-
Called when the service transitions to the
State#STOPPING STOPPINGstate. - STOPPING - Enum constant in enum dev.mccue.guava.concurrent.Service.State
-
A service in this state is transitioning to
#TERMINATED. - Striped<L> - Class in dev.mccue.guava.concurrent
-
A striped
Lock/Semaphore/ReadWriteLock. - submit(ClosingFuture.ClosingCallable<V>, Executor) - Static method in class dev.mccue.guava.concurrent.ClosingFuture
-
Starts a
ClosingFuturepipeline by submitting a callable block to an executor. - submit(Runnable) - Method in class dev.mccue.guava.concurrent.AbstractListeningExecutorService
- submit(Runnable) - Method in class dev.mccue.guava.concurrent.ForwardingExecutorService
- submit(Runnable) - Method in class dev.mccue.guava.concurrent.ForwardingListeningExecutorService
- submit(Runnable) - Method in interface dev.mccue.guava.concurrent.ListeningExecutorService
- submit(Runnable, Executor) - Static method in class dev.mccue.guava.concurrent.Futures
-
Executes
runnableon the specifiedexecutor, returning aFuturethat will complete after execution. - submit(Runnable, T) - Method in class dev.mccue.guava.concurrent.AbstractListeningExecutorService
- submit(Runnable, T) - Method in class dev.mccue.guava.concurrent.ForwardingExecutorService
- submit(Runnable, T) - Method in class dev.mccue.guava.concurrent.ForwardingListeningExecutorService
- submit(Runnable, T) - Method in interface dev.mccue.guava.concurrent.ListeningExecutorService
- submit(Callable<O>, Executor) - Static method in class dev.mccue.guava.concurrent.Futures
-
Executes
callableon the specifiedexecutor, returning aFuture. - submit(Callable<T>) - Method in class dev.mccue.guava.concurrent.AbstractListeningExecutorService
- submit(Callable<T>) - Method in class dev.mccue.guava.concurrent.ForwardingExecutorService
- submit(Callable<T>) - Method in class dev.mccue.guava.concurrent.ForwardingListeningExecutorService
- submit(Callable<T>) - Method in interface dev.mccue.guava.concurrent.ListeningExecutorService
- submit(Callable<T>, Executor) - Method in class dev.mccue.guava.concurrent.ExecutionSequencer
-
Enqueues a task to run when the previous task (if any) completes.
- submitAsync(AsyncCallable<O>, Executor) - Static method in class dev.mccue.guava.concurrent.Futures
-
Executes
callableon the specifiedexecutor, returning aFuture. - submitAsync(AsyncCallable<T>, Executor) - Method in class dev.mccue.guava.concurrent.ExecutionSequencer
-
Enqueues a task to run when the previous task (if any) completes.
- submitAsync(ClosingFuture.AsyncClosingCallable<V>, Executor) - Static method in class dev.mccue.guava.concurrent.ClosingFuture
-
Starts a
ClosingFuturepipeline by submitting a callable block to an executor. - successfulAsList(ListenableFuture<? extends V>...) - Static method in class dev.mccue.guava.concurrent.Futures
-
Creates a new
ListenableFuturewhose value is a list containing the values of all its successful input futures. - successfulAsList(Iterable<? extends ListenableFuture<? extends V>>) - Static method in class dev.mccue.guava.concurrent.Futures
-
Creates a new
ListenableFuturewhose value is a list containing the values of all its successful input futures. - sum() - Method in class dev.mccue.guava.concurrent.AtomicLongMap
-
Returns the sum of all values in this map.
- systemExit() - Static method in class dev.mccue.guava.concurrent.UncaughtExceptionHandlers
-
Returns an exception handler that exits the system.
T
- take() - Method in class dev.mccue.guava.concurrent.ForwardingBlockingDeque
- take() - Method in class dev.mccue.guava.concurrent.ForwardingBlockingQueue
- takeFirst() - Method in class dev.mccue.guava.concurrent.ForwardingBlockingDeque
- takeLast() - Method in class dev.mccue.guava.concurrent.ForwardingBlockingDeque
- takeUninterruptibly(BlockingQueue<E>) - Static method in class dev.mccue.guava.concurrent.Uninterruptibles
-
Invokes
queue.BlockingQueue#take() take()uninterruptibly. - terminated(Service.State) - Method in class dev.mccue.guava.concurrent.Service.Listener
-
Called when the service transitions to the
State#TERMINATED TERMINATEDstate. - TERMINATED - Enum constant in enum dev.mccue.guava.concurrent.Service.State
-
A service in this state has completed execution normally.
- ThreadFactoryBuilder - Class in dev.mccue.guava.concurrent
-
A ThreadFactory builder, providing any combination of these features: whether threads should be marked as
Thread#setDaemon daemonthreads aThreadFactoryBuilder#setNameFormat naming formataThread#setPriority thread priorityanThread#setUncaughtExceptionHandler uncaught exception handleraThreadFactory#newThread backing thread factory - ThreadFactoryBuilder() - Constructor for class dev.mccue.guava.concurrent.ThreadFactoryBuilder
-
Creates a new
ThreadFactorybuilder. - THROW - Enum constant in enum dev.mccue.guava.concurrent.CycleDetectingLockFactory.Policies
-
When potential deadlock is detected, this policy results in the throwing of the
PotentialDeadlockExceptionindicating the potential deadlock, which includes stack traces illustrating the cycle in lock acquisition order. - TimeLimiter - Interface in dev.mccue.guava.concurrent
-
Imposes a time limit on method calls.
- toString() - Method in class dev.mccue.guava.concurrent.AbstractExecutionThreadService
- toString() - Method in class dev.mccue.guava.concurrent.AbstractFuture
- toString() - Method in class dev.mccue.guava.concurrent.AbstractIdleService
- toString() - Method in class dev.mccue.guava.concurrent.AbstractScheduledService
- toString() - Method in class dev.mccue.guava.concurrent.AbstractService
- toString() - Method in class dev.mccue.guava.concurrent.AtomicDouble
-
Returns the String representation of the current value.
- toString() - Method in class dev.mccue.guava.concurrent.AtomicDoubleArray
-
Returns the String representation of the current values of array.
- toString() - Method in class dev.mccue.guava.concurrent.AtomicLongMap
- toString() - Method in class dev.mccue.guava.concurrent.ClosingFuture
- toString() - Method in class dev.mccue.guava.concurrent.RateLimiter
- toString() - Method in class dev.mccue.guava.concurrent.ServiceManager
- transform(Function<? super V, T>, Executor) - Method in class dev.mccue.guava.concurrent.FluentFuture
-
Returns a new
Futurewhose result is derived from the result of thisFuture. - transform(ClosingFuture.ClosingFunction<? super V, U>, Executor) - Method in class dev.mccue.guava.concurrent.ClosingFuture
-
Returns a new
ClosingFuturepipeline step derived from this one by applying a function to its value. - transform(ListenableFuture<I>, Function<? super I, ? extends O>, Executor) - Static method in class dev.mccue.guava.concurrent.Futures
-
Returns a new
Futurewhose result is derived from the result of the givenFuture. - transformAsync(AsyncFunction<? super V, T>, Executor) - Method in class dev.mccue.guava.concurrent.FluentFuture
-
Returns a new
Futurewhose result is asynchronously derived from the result of thisFuture. - transformAsync(ClosingFuture.AsyncClosingFunction<? super V, U>, Executor) - Method in class dev.mccue.guava.concurrent.ClosingFuture
-
Returns a new
ClosingFuturepipeline step derived from this one by applying a function that returns aClosingFutureto its value. - transformAsync(ListenableFuture<I>, AsyncFunction<? super I, ? extends O>, Executor) - Static method in class dev.mccue.guava.concurrent.Futures
-
Returns a new
Futurewhose result is asynchronously derived from the result of the givenFuture. - triggerShutdown() - Method in class dev.mccue.guava.concurrent.AbstractExecutionThreadService
-
Invoked to request the service to stop.
- tryAcquire() - Method in class dev.mccue.guava.concurrent.RateLimiter
-
Acquires a permit from this
RateLimiterif it can be acquired immediately without delay. - tryAcquire(int) - Method in class dev.mccue.guava.concurrent.RateLimiter
-
Acquires permits from this
RateLimiterif it can be acquired immediately without delay. - tryAcquire(int, long, TimeUnit) - Method in class dev.mccue.guava.concurrent.RateLimiter
-
Acquires the given number of permits from this
RateLimiterif it can be obtained without exceeding the specifiedtimeout, or returnsfalseimmediately (without waiting) if the permits would not have been granted before the timeout expired. - tryAcquire(int, Duration) - Method in class dev.mccue.guava.concurrent.RateLimiter
-
Acquires the given number of permits from this
RateLimiterif it can be obtained without exceeding the specifiedtimeout, or returnsfalseimmediately (without waiting) if the permits would not have been granted before the timeout expired. - tryAcquire(long, TimeUnit) - Method in class dev.mccue.guava.concurrent.RateLimiter
-
Acquires a permit from this
RateLimiterif it can be obtained without exceeding the specifiedtimeout, or returnsfalseimmediately (without waiting) if the permit would not have been granted before the timeout expired. - tryAcquire(Duration) - Method in class dev.mccue.guava.concurrent.RateLimiter
-
Acquires a permit from this
RateLimiterif it can be obtained without exceeding the specifiedtimeout, or returnsfalseimmediately (without waiting) if the permit would not have been granted before the timeout expired. - tryAcquireUninterruptibly(Semaphore, int, long, TimeUnit) - Static method in class dev.mccue.guava.concurrent.Uninterruptibles
-
Invokes
semaphore.Semaphore#tryAcquire(int, long, TimeUnit) tryAcquire(permits, timeout, unit)uninterruptibly. - tryAcquireUninterruptibly(Semaphore, int, Duration) - Static method in class dev.mccue.guava.concurrent.Uninterruptibles
-
Invokes
semaphore.Semaphore#tryAcquire(int, long, TimeUnit) tryAcquire(permits, timeout, unit)uninterruptibly. - tryAcquireUninterruptibly(Semaphore, long, TimeUnit) - Static method in class dev.mccue.guava.concurrent.Uninterruptibles
-
Invokes
semaphore.Semaphore#tryAcquire(int, long, TimeUnit) tryAcquire(1, timeout, unit)uninterruptibly. - tryAcquireUninterruptibly(Semaphore, Duration) - Static method in class dev.mccue.guava.concurrent.Uninterruptibles
-
Invokes
semaphore.Semaphore#tryAcquire(int, long, TimeUnit) tryAcquire(1, timeout, unit)uninterruptibly. - tryEnter() - Method in class dev.mccue.guava.concurrent.Monitor
-
Enters this monitor if it is possible to do so immediately.
- tryEnterIf(Monitor.Guard) - Method in class dev.mccue.guava.concurrent.Monitor
-
Enters this monitor if it is possible to do so immediately and the guard is satisfied.
- tryInternalFastPathGetFailure() - Method in class dev.mccue.guava.concurrent.AbstractFuture
-
Usually returns
nullbut, if thisFuturehas failed, may optionally return the cause of the failure. - tryLockUninterruptibly(Lock, long, TimeUnit) - Static method in class dev.mccue.guava.concurrent.Uninterruptibles
-
Invokes
lock.Lock#tryLock(long, TimeUnit) tryLock(timeout, unit)uninterruptibly. - tryLockUninterruptibly(Lock, Duration) - Static method in class dev.mccue.guava.concurrent.Uninterruptibles
-
Invokes
lock.Lock#tryLock(long, TimeUnit) tryLock(timeout, unit)uninterruptibly.
U
- UncaughtExceptionHandlers - Class in dev.mccue.guava.concurrent
-
Factories for
UncaughtExceptionHandlerinstances. - UncheckedExecutionException - Exception in dev.mccue.guava.concurrent
-
Unchecked variant of
java.util.concurrent.ExecutionException. - UncheckedExecutionException() - Constructor for exception dev.mccue.guava.concurrent.UncheckedExecutionException
-
Deprecated.Prefer
UncheckedExecutionException(Throwable)a constructor that accepts a cause: Users of this class typically expect for instances to have a non-null cause. At the moment, you can usually still preserve behavior by passing an explicitnullcause. Note, however, that passing an explicitnullcause prevents anyone from calling#initCauselater, so it is not quite equivalent to using a constructor that omits the cause. - UncheckedExecutionException(String) - Constructor for exception dev.mccue.guava.concurrent.UncheckedExecutionException
-
Deprecated.Prefer
UncheckedExecutionException(String, Throwable)a constructor that accepts a cause: Users of this class typically expect for instances to have a non-null cause. At the moment, you can usually still preserve behavior by passing an explicitnullcause. Note, however, that passing an explicitnullcause prevents anyone from calling#initCauselater, so it is not quite equivalent to using a constructor that omits the cause. - UncheckedExecutionException(String, Throwable) - Constructor for exception dev.mccue.guava.concurrent.UncheckedExecutionException
-
Creates a new instance with the given detail message and cause.
- UncheckedExecutionException(Throwable) - Constructor for exception dev.mccue.guava.concurrent.UncheckedExecutionException
-
Creates a new instance with
nullas its detail message and the given cause. - UncheckedTimeoutException - Exception in dev.mccue.guava.concurrent
-
Unchecked version of
java.util.concurrent.TimeoutException. - UncheckedTimeoutException() - Constructor for exception dev.mccue.guava.concurrent.UncheckedTimeoutException
- UncheckedTimeoutException(String) - Constructor for exception dev.mccue.guava.concurrent.UncheckedTimeoutException
- UncheckedTimeoutException(String, Throwable) - Constructor for exception dev.mccue.guava.concurrent.UncheckedTimeoutException
- UncheckedTimeoutException(Throwable) - Constructor for exception dev.mccue.guava.concurrent.UncheckedTimeoutException
- Uninterruptibles - Class in dev.mccue.guava.concurrent
-
Utilities for treating interruptible operations as uninterruptible.
- updateAndGet(int, DoubleUnaryOperator) - Method in class dev.mccue.guava.concurrent.AtomicDoubleArray
-
Atomically updates the element at index
iwith the results of applying the given function to the current value. - updateAndGet(DoubleUnaryOperator) - Method in class dev.mccue.guava.concurrent.AtomicDouble
-
Atomically updates the current value with the results of applying the given function.
- updateAndGet(K, LongUnaryOperator) - Method in class dev.mccue.guava.concurrent.AtomicLongMap
-
Updates the value currently associated with
keywith the specified function, and returns the new value.
V
- valueOf(String) - Static method in enum dev.mccue.guava.concurrent.CycleDetectingLockFactory.Policies
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum dev.mccue.guava.concurrent.Service.State
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum dev.mccue.guava.concurrent.CycleDetectingLockFactory.Policies
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum dev.mccue.guava.concurrent.Service.State
-
Returns an array containing the constants of this enum type, in the order they are declared.
- VisibleForTesting - Annotation Type in dev.mccue.guava.concurrent
W
- waitFor(Monitor.Guard) - Method in class dev.mccue.guava.concurrent.Monitor
-
Waits for the guard to be satisfied.
- waitFor(Monitor.Guard, long, TimeUnit) - Method in class dev.mccue.guava.concurrent.Monitor
-
Waits for the guard to be satisfied.
- waitFor(Monitor.Guard, Duration) - Method in class dev.mccue.guava.concurrent.Monitor
-
Waits for the guard to be satisfied.
- waitForUninterruptibly(Monitor.Guard) - Method in class dev.mccue.guava.concurrent.Monitor
-
Waits for the guard to be satisfied.
- waitForUninterruptibly(Monitor.Guard, long, TimeUnit) - Method in class dev.mccue.guava.concurrent.Monitor
-
Waits for the guard to be satisfied.
- waitForUninterruptibly(Monitor.Guard, Duration) - Method in class dev.mccue.guava.concurrent.Monitor
-
Waits for the guard to be satisfied.
- WARN - Enum constant in enum dev.mccue.guava.concurrent.CycleDetectingLockFactory.Policies
-
When potential deadlock is detected, this policy results in the logging of a
Level#ERRORmessage indicating the potential deadlock, which includes stack traces illustrating the cycle in lock acquisition order. - wasInterrupted() - Method in class dev.mccue.guava.concurrent.AbstractFuture
-
Returns true if this future was cancelled with
mayInterruptIfRunningset totrue. - weakCompareAndSet(double, double) - Method in class dev.mccue.guava.concurrent.AtomicDouble
-
Atomically sets the value to the given updated value if the current value is bitwise equal to the expected value.
- weakCompareAndSet(int, double, double) - Method in class dev.mccue.guava.concurrent.AtomicDoubleArray
-
Atomically sets the element at position
ito the given updated value if the current value is bitwise equal to the expected value. - whenAllComplete(ClosingFuture<?>, ClosingFuture<?>...) - Static method in class dev.mccue.guava.concurrent.ClosingFuture
-
Starts specifying how to combine
ClosingFutures into a single pipeline. - whenAllComplete(ListenableFuture<? extends V>...) - Static method in class dev.mccue.guava.concurrent.Futures
-
Creates a
FutureCombinerthat processes the completed futures whether or not they're successful. - whenAllComplete(Iterable<? extends ClosingFuture<?>>) - Static method in class dev.mccue.guava.concurrent.ClosingFuture
-
Starts specifying how to combine
ClosingFutures into a single pipeline. - whenAllComplete(Iterable<? extends ListenableFuture<? extends V>>) - Static method in class dev.mccue.guava.concurrent.Futures
-
Creates a
FutureCombinerthat processes the completed futures whether or not they're successful. - whenAllSucceed(ClosingFuture<?>, ClosingFuture<?>, ClosingFuture<?>, ClosingFuture<?>, ClosingFuture<?>, ClosingFuture<?>, ClosingFuture<?>...) - Static method in class dev.mccue.guava.concurrent.ClosingFuture
-
Starts specifying how to combine
ClosingFutures into a single pipeline, assuming they all succeed. - whenAllSucceed(ClosingFuture<V1>, ClosingFuture<V2>) - Static method in class dev.mccue.guava.concurrent.ClosingFuture
-
Starts specifying how to combine two
ClosingFutures into a single pipeline, assuming they all succeed. - whenAllSucceed(ClosingFuture<V1>, ClosingFuture<V2>, ClosingFuture<V3>) - Static method in class dev.mccue.guava.concurrent.ClosingFuture
-
Starts specifying how to combine three
ClosingFutures into a single pipeline, assuming they all succeed. - whenAllSucceed(ClosingFuture<V1>, ClosingFuture<V2>, ClosingFuture<V3>, ClosingFuture<V4>) - Static method in class dev.mccue.guava.concurrent.ClosingFuture
-
Starts specifying how to combine four
ClosingFutures into a single pipeline, assuming they all succeed. - whenAllSucceed(ClosingFuture<V1>, ClosingFuture<V2>, ClosingFuture<V3>, ClosingFuture<V4>, ClosingFuture<V5>) - Static method in class dev.mccue.guava.concurrent.ClosingFuture
-
Starts specifying how to combine five
ClosingFutures into a single pipeline, assuming they all succeed. - whenAllSucceed(ListenableFuture<? extends V>...) - Static method in class dev.mccue.guava.concurrent.Futures
-
Creates a
FutureCombinerrequiring that all passed in futures are successful. - whenAllSucceed(Iterable<? extends ClosingFuture<?>>) - Static method in class dev.mccue.guava.concurrent.ClosingFuture
-
Starts specifying how to combine
ClosingFutures into a single pipeline, assuming they all succeed. - whenAllSucceed(Iterable<? extends ListenableFuture<? extends V>>) - Static method in class dev.mccue.guava.concurrent.Futures
-
Creates a
FutureCombinerrequiring that all passed in futures are successful. - withoutCloser(AsyncFunction<V, U>) - Static method in class dev.mccue.guava.concurrent.ClosingFuture
-
Returns an
AsyncClosingFunctionthat applies anAsyncFunctionto an input, ignoring the DeferredCloser and returning aClosingFuturederived from the returnedListenableFuture. - withTimeout(long, TimeUnit, ScheduledExecutorService) - Method in class dev.mccue.guava.concurrent.FluentFuture
-
Returns a future that delegates to this future but will finish early (via a
TimeoutExceptionwrapped in anExecutionException) if the specified timeout expires. - withTimeout(ListenableFuture<V>, long, TimeUnit, ScheduledExecutorService) - Static method in class dev.mccue.guava.concurrent.Futures
-
Returns a future that delegates to another but will finish early (via a
TimeoutExceptionwrapped in anExecutionException) if the specified duration expires. - withTimeout(ListenableFuture<V>, Duration, ScheduledExecutorService) - Static method in class dev.mccue.guava.concurrent.Futures
-
Returns a future that delegates to another but will finish early (via a
TimeoutExceptionwrapped in anExecutionException) if the specified duration expires. - withTimeout(Duration, ScheduledExecutorService) - Method in class dev.mccue.guava.concurrent.FluentFuture
-
Returns a future that delegates to this future but will finish early (via a
TimeoutExceptionwrapped in anExecutionException) if the specified timeout expires.
All Classes and Interfaces|All Packages|Serialized Form
Futures of closeable types is dangerous in general because the underlying value may never be closed if theFutureis canceled after its operation begins. Consider replacing code that createsListenableFutures of closeable types, including those that pass them to this method, with#submit(ClosingCallable, Executor)in order to ensure that resources do not leak. Or, to start a pipeline with aListenableFuturethat doesn't create values that should be closed, useClosingFuture#from.