A C D E F G I M N O P R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- accept(P, Throwable) - Method in class org.osgi.util.promise.DeferredPromiseImpl.FlatMap
- accept(P, Throwable) - Method in class org.osgi.util.promise.DeferredPromiseImpl.Map
- accept(P, Throwable) - Method in class org.osgi.util.promise.DeferredPromiseImpl.Then
- accept(R, Throwable) - Method in interface org.osgi.util.promise.PromiseImpl.Result
- accept(T, Throwable) - Method in class org.osgi.util.promise.DeferredPromiseImpl.Chain
- accept(T, Throwable) - Method in class org.osgi.util.promise.DeferredPromiseImpl.ChainImpl
- accept(T, Throwable) - Method in class org.osgi.util.promise.DeferredPromiseImpl.FallbackChain
- accept(T, Throwable) - Method in class org.osgi.util.promise.DeferredPromiseImpl.FallbackTo
- accept(T, Throwable) - Method in class org.osgi.util.promise.DeferredPromiseImpl.Filter
- accept(T, Throwable) - Method in class org.osgi.util.promise.DeferredPromiseImpl.Recover
- accept(T, Throwable) - Method in class org.osgi.util.promise.DeferredPromiseImpl.RecoverWith
- accept(T, Throwable) - Method in class org.osgi.util.promise.DeferredPromiseImpl.ResolveWith
- accept(T, Throwable) - Method in class org.osgi.util.promise.DeferredPromiseImpl.ThenAccept
- accept(T, Throwable) - Method in class org.osgi.util.promise.DeferredPromiseImpl.Timeout
- accept(T, Throwable) - Method in class org.osgi.util.promise.PromiseImpl.OnFailure
- accept(T, Throwable) - Method in class org.osgi.util.promise.PromiseImpl.OnSuccess
- accept(T, Throwable) - Method in class org.osgi.util.promise.PromiseImpl.ToCompletionStage
- afterExecute(Runnable, Throwable) - Method in class org.osgi.util.promise.PromiseFactory.DefaultExecutors.ScheduledExecutor
-
Handle uncaught exceptions
- all(Collection<Promise<S>>) - Method in class org.osgi.util.promise.PromiseFactory
-
Returns a new Promise that is a latch on the resolution of the specified Promises.
- all(Collection<Promise<S>>) - Static method in class org.osgi.util.promise.Promises
-
Returns a new Promise that is a latch on the resolution of the specified Promises.
- all(Promise<? extends T>...) - Static method in class org.osgi.util.promise.Promises
-
Returns a new Promise that is a latch on the resolution of the specified Promises.
- All(DeferredPromiseImpl<List<T>>, List<Promise<S>>) - Constructor for class org.osgi.util.promise.PromiseFactory.All
- allowCurrentThread - Variable in class org.osgi.util.promise.PromiseFactory
- allowCurrentThread() - Method in class org.osgi.util.promise.PromiseFactory
C
- call(Promise<T>) - Method in interface org.osgi.util.promise.Success
-
Success callback for a Promise.
- callbackExecutor - Variable in class org.osgi.util.promise.PromiseFactory
-
The executor to use for callbacks.
- callbackExecutor - Static variable in class org.osgi.util.promise.PromiseFactory.DefaultExecutors
- callbackExecutor() - Static method in class org.osgi.util.promise.PromiseFactory.DefaultExecutors
- callbacks - Static variable in class org.osgi.util.promise.PromiseFactory.DefaultExecutors
- callbacks - Variable in class org.osgi.util.promise.PromiseImpl
-
A ConcurrentLinkedQueue to hold the callbacks for this Promise, so no additional synchronization is required to write to or read from the queue.
- CALLBACKS_EXECUTOR_THREAD - org.osgi.util.promise.PromiseFactory.Option
-
Run callbacks on an executor thread.
- Chain(Promise<? extends T>) - Constructor for class org.osgi.util.promise.DeferredPromiseImpl.Chain
- chained - Variable in class org.osgi.util.promise.PromiseFactory.All
- ChainImpl(PromiseImpl<T>) - Constructor for class org.osgi.util.promise.DeferredPromiseImpl.ChainImpl
- coerce() - Method in class org.osgi.util.promise.FailedPromiseImpl
-
Coerce the value type of this FailedPromiseImpl.
- combiner(C, C) - Static method in class org.osgi.util.promise.PromiseFactory
- completableFuture - Variable in class org.osgi.util.promise.PromiseImpl.ToCompletionStage
- consumer - Variable in class org.osgi.util.promise.DeferredPromiseImpl.ThenAccept
D
- DefaultExecutors() - Constructor for class org.osgi.util.promise.PromiseFactory.DefaultExecutors
- defaultFactory - Static variable in class org.osgi.util.promise.PromiseFactory
-
The default factory which uses the default callback executor and default scheduled executor.
- defaultOptions() - Static method in class org.osgi.util.promise.PromiseFactory
- deferred() - Method in class org.osgi.util.promise.PromiseFactory
-
Create a new Deferred with the callback executor and scheduled executor of this PromiseFactory object.
- deferred() - Method in class org.osgi.util.promise.PromiseImpl
-
Return a new
DeferredPromiseImplusing thePromiseFactoryof this PromiseImpl. - Deferred<T> - Class in org.osgi.util.promise
-
A Deferred Promise resolution.
- Deferred() - Constructor for class org.osgi.util.promise.Deferred
-
Create a new Deferred.
- Deferred(PromiseFactory) - Constructor for class org.osgi.util.promise.Deferred
-
Create a new Deferred with the specified callback and scheduled executors.
- DeferredPromiseImpl<T> - Class in org.osgi.util.promise
-
Deferred Promise implementation.
- DeferredPromiseImpl(PromiseFactory) - Constructor for class org.osgi.util.promise.DeferredPromiseImpl
-
Initialize this Promise.
- DeferredPromiseImpl.Chain - Class in org.osgi.util.promise
-
A callback used to resolve the chained Promise when the Promise is resolved.
- DeferredPromiseImpl.ChainImpl - Class in org.osgi.util.promise
-
A callback used to resolve the chained Promise when the PromiseImpl is resolved.
- DeferredPromiseImpl.Delay - Class in org.osgi.util.promise
-
A callback used by the
PromiseImpl.delay(long)method to delay chaining a promise. - DeferredPromiseImpl.FallbackChain - Class in org.osgi.util.promise
-
A callback used to resolve the chained Promise when the fallback Promise is resolved.
- DeferredPromiseImpl.FallbackTo - Class in org.osgi.util.promise
-
A callback used by the
PromiseImpl.fallbackTo(Promise,Class)method. - DeferredPromiseImpl.Filter - Class in org.osgi.util.promise
-
A callback used by the
PromiseImpl.filter(Predicate)method. - DeferredPromiseImpl.FlatMap<P> - Class in org.osgi.util.promise
-
A callback used by the
PromiseImpl.flatMap(Function)method. - DeferredPromiseImpl.Map<P> - Class in org.osgi.util.promise
-
A callback used by the
PromiseImpl.map(Function)method. - DeferredPromiseImpl.Recover - Class in org.osgi.util.promise
-
A callback used by the
PromiseImpl.recover(Function,Class)method. - DeferredPromiseImpl.RecoverWith - Class in org.osgi.util.promise
-
A callback used by the
PromiseImpl.recoverWith(Function,Class)method. - DeferredPromiseImpl.ResolveWith - Class in org.osgi.util.promise
-
A callback used to resolve a Promise with another Promise for the
DeferredPromiseImpl.resolveWith(Promise)method or with another CompletionStage for theDeferredPromiseImpl.resolveWith(CompletionStage)method. - DeferredPromiseImpl.Submit - Class in org.osgi.util.promise
-
A callback used by the
PromiseFactory.submit(Callable)method. - DeferredPromiseImpl.Then<P> - Class in org.osgi.util.promise
-
A callback used to chain promises for the
PromiseImpl.then(Success, Failure)method. - DeferredPromiseImpl.ThenAccept - Class in org.osgi.util.promise
-
A callback used by the
PromiseImpl.thenAccept(Consumer)method. - DeferredPromiseImpl.Timeout - Class in org.osgi.util.promise
-
A callback used by the
PromiseImpl.timeout(long)method to schedule the timeout and to resolve the chained Promise and cancel the timeout. - delay(long) - Method in interface org.osgi.util.promise.Promise
-
Delay after the resolution of this Promise.
- delay(long) - Method in class org.osgi.util.promise.PromiseImpl
-
Delay after the resolution of this Promise.
- Delay(PromiseImpl<T>, long) - Constructor for class org.osgi.util.promise.DeferredPromiseImpl.Delay
- delegateThreadFactory - Variable in class org.osgi.util.promise.PromiseFactory.DefaultExecutors
E
- execute(Runnable) - Method in class org.osgi.util.promise.PromiseFactory.InlineExecutor
- execute(Runnable) - Method in class org.osgi.util.promise.PromiseImpl
-
Execute a operation on the executor.
- executor() - Method in class org.osgi.util.promise.PromiseFactory
-
Returns the executor to use for callbacks.
F
- factory - Variable in class org.osgi.util.promise.PromiseImpl
-
The factory to use for callbacks and scheduled operations.
- fail - Variable in class org.osgi.util.promise.DeferredPromiseImpl
-
The failure of this Promise if resolved with a failure or
nullif successfully resolved. - fail - Variable in class org.osgi.util.promise.FailedPromiseImpl
-
The failure of this failed Promise.
- fail(Throwable) - Method in class org.osgi.util.promise.Deferred
-
Fail the Promise associated with this Deferred.
- fail(Promise<?>) - Method in interface org.osgi.util.promise.Failure
-
Failure callback for a Promise.
- failed - Variable in exception org.osgi.util.promise.FailedPromisesException
- failed(Throwable) - Method in class org.osgi.util.promise.PromiseFactory
-
Returns a new Promise that has been resolved with the specified failure.
- failed(Throwable) - Method in class org.osgi.util.promise.PromiseImpl
-
Return a new
FailedPromiseImplusing thePromiseFactoryof this PromiseImpl. - failed(Throwable) - Static method in class org.osgi.util.promise.Promises
-
Returns a new Promise that has been resolved with the specified failure.
- FailedPromiseImpl<T> - Class in org.osgi.util.promise
-
Failed Promise implementation.
- FailedPromiseImpl(Throwable, PromiseFactory) - Constructor for class org.osgi.util.promise.FailedPromiseImpl
-
Initialize this failed Promise.
- FailedPromisesException - Exception in org.osgi.util.promise
-
Promise failure exception for a collection of failed Promises.
- FailedPromisesException(Collection<Promise<?>>, Throwable) - Constructor for exception org.osgi.util.promise.FailedPromisesException
-
Create a new FailedPromisesException with the specified Promises.
- failure - Variable in class org.osgi.util.promise.DeferredPromiseImpl.FallbackChain
- failure - Variable in class org.osgi.util.promise.DeferredPromiseImpl.Then
- failure - Variable in class org.osgi.util.promise.PromiseImpl.OnFailure
- Failure - Interface in org.osgi.util.promise
-
Failure callback for a Promise.
- failureType - Variable in class org.osgi.util.promise.DeferredPromiseImpl.FallbackTo
- failureType - Variable in class org.osgi.util.promise.DeferredPromiseImpl.Recover
- failureType - Variable in class org.osgi.util.promise.DeferredPromiseImpl.RecoverWith
- failureType - Variable in class org.osgi.util.promise.PromiseImpl.OnFailure
- fallback - Variable in class org.osgi.util.promise.DeferredPromiseImpl.FallbackChain
- fallback - Variable in class org.osgi.util.promise.DeferredPromiseImpl.FallbackTo
- FallbackChain(Promise<? extends T>, Throwable) - Constructor for class org.osgi.util.promise.DeferredPromiseImpl.FallbackChain
- fallbackTo(Promise<? extends T>) - Method in interface org.osgi.util.promise.Promise
-
Fall back to the value of the specified Promise if this Promise fails.
- fallbackTo(Promise<? extends T>) - Method in class org.osgi.util.promise.PromiseImpl
-
Fall back to the value of the specified Promise if this Promise fails.
- fallbackTo(Promise<? extends T>) - Method in class org.osgi.util.promise.ResolvedPromiseImpl
-
Fall back to the value of the specified Promise if this Promise fails.
- fallbackTo(Promise<? extends T>, Class<?>) - Method in interface org.osgi.util.promise.Promise
-
Fall back to the value of the specified Promise if this Promise fails and the failure is an instance of a failure type.
- fallbackTo(Promise<? extends T>, Class<?>) - Method in class org.osgi.util.promise.PromiseImpl
-
Fall back to the value of the specified Promise if this Promise fails and the failure is an instance of a failure type.
- fallbackTo(Promise<? extends T>, Class<?>) - Method in class org.osgi.util.promise.ResolvedPromiseImpl
-
Fall back to the value of the specified Promise if this Promise fails and the failure is an instance of a failure type.
- FallbackTo(PromiseImpl<T>, Promise<? extends T>, Class<?>) - Constructor for class org.osgi.util.promise.DeferredPromiseImpl.FallbackTo
- filter(Predicate<? super T>) - Method in class org.osgi.util.promise.FailedPromiseImpl
-
Filter the value of this Promise.
- filter(Predicate<? super T>) - Method in interface org.osgi.util.promise.Promise
-
Filter the value of this Promise.
- filter(Predicate<? super T>) - Method in class org.osgi.util.promise.PromiseImpl
-
Filter the value of this Promise.
- Filter(PromiseImpl<T>, Predicate<? super T>) - Constructor for class org.osgi.util.promise.DeferredPromiseImpl.Filter
- flatMap(Function<? super T, Promise<? extends R>>) - Method in class org.osgi.util.promise.FailedPromiseImpl
-
FlatMap the value of this Promise.
- flatMap(Function<? super T, Promise<? extends R>>) - Method in interface org.osgi.util.promise.Promise
-
FlatMap the value of this Promise.
- flatMap(Function<? super T, Promise<? extends R>>) - Method in class org.osgi.util.promise.PromiseImpl
-
FlatMap the value of this Promise.
- FlatMap(PromiseImpl<P>, Function<? super P, Promise<? extends T>>) - Constructor for class org.osgi.util.promise.DeferredPromiseImpl.FlatMap
- future - Variable in class org.osgi.util.promise.DeferredPromiseImpl.Timeout
G
- getFailedPromises() - Method in exception org.osgi.util.promise.FailedPromisesException
-
Returns the collection of Promises that have been resolved with a failure.
- getFailure() - Method in class org.osgi.util.promise.DeferredPromiseImpl
-
Returns the failure of this Promise.
- getFailure() - Method in class org.osgi.util.promise.FailedPromiseImpl
-
Returns the failure of this Promise.
- getFailure() - Method in interface org.osgi.util.promise.Promise
-
Returns the failure of this Promise.
- getFailure() - Method in class org.osgi.util.promise.ResolvedPromiseImpl
-
Returns the failure of this Promise.
- getPromise() - Method in class org.osgi.util.promise.Deferred
-
Returns the Promise associated with this Deferred.
- getValue() - Method in class org.osgi.util.promise.DeferredPromiseImpl
-
Returns the value of this Promise.
- getValue() - Method in class org.osgi.util.promise.FailedPromiseImpl
-
Returns the value of this Promise.
- getValue() - Method in interface org.osgi.util.promise.Promise
-
Returns the value of this Promise.
- getValue() - Method in class org.osgi.util.promise.ResolvedPromiseImpl
-
Returns the value of this Promise.
I
- inlineExecutor() - Static method in class org.osgi.util.promise.PromiseFactory
-
Returns an Executor implementation that executes tasks immediately on the thread calling the
Executor.executemethod. - InlineExecutor() - Constructor for class org.osgi.util.promise.PromiseFactory.InlineExecutor
- isDone() - Method in class org.osgi.util.promise.DeferredPromiseImpl
-
Returns whether this Promise has been resolved.
- isDone() - Method in class org.osgi.util.promise.FailedPromiseImpl
-
Returns whether this Promise has been resolved.
- isDone() - Method in interface org.osgi.util.promise.Promise
-
Returns whether this Promise has been resolved.
- isDone() - Method in class org.osgi.util.promise.ResolvedPromiseImpl
-
Returns whether this Promise has been resolved.
M
- map(Function<? super T, ? extends R>) - Method in class org.osgi.util.promise.FailedPromiseImpl
-
Map the value of this Promise.
- map(Function<? super T, ? extends R>) - Method in interface org.osgi.util.promise.Promise
-
Map the value of this Promise.
- map(Function<? super T, ? extends R>) - Method in class org.osgi.util.promise.PromiseImpl
-
Map the value of this Promise.
- Map(PromiseImpl<P>, Function<? super P, ? extends T>) - Constructor for class org.osgi.util.promise.DeferredPromiseImpl.Map
- mapper - Variable in class org.osgi.util.promise.DeferredPromiseImpl.FlatMap
- mapper - Variable in class org.osgi.util.promise.DeferredPromiseImpl.Map
- millis - Variable in class org.osgi.util.promise.DeferredPromiseImpl.Delay
N
- newThread(Runnable) - Method in class org.osgi.util.promise.PromiseFactory.DefaultExecutors
-
Executor threads should not prevent VM from exiting.
- notifyCallbacks() - Method in class org.osgi.util.promise.PromiseImpl
-
Call any registered callbacks if this Promise is resolved.
O
- onFailure(Consumer<? super F>, Class<? extends F>) - Method in interface org.osgi.util.promise.Promise
-
Register a callback to be called with the failure for this Promise when this Promise is resolved with a failure of a failure type.
- onFailure(Consumer<? super F>, Class<? extends F>) - Method in class org.osgi.util.promise.PromiseImpl
-
Register a callback to be called with the failure for this Promise when this Promise is resolved with a failure of a failure type.
- onFailure(Consumer<? super F>, Class<? extends F>) - Method in class org.osgi.util.promise.ResolvedPromiseImpl
-
Register a callback to be called with the failure for this Promise when this Promise is resolved with a failure of a failure type.
- onFailure(Consumer<? super Throwable>) - Method in interface org.osgi.util.promise.Promise
-
Register a callback to be called with the failure for this Promise when this Promise is resolved with a failure.
- onFailure(Consumer<? super Throwable>) - Method in class org.osgi.util.promise.PromiseImpl
-
Register a callback to be called with the failure for this Promise when this Promise is resolved with a failure.
- onFailure(Consumer<? super Throwable>) - Method in class org.osgi.util.promise.ResolvedPromiseImpl
-
Register a callback to be called with the failure for this Promise when this Promise is resolved with a failure.
- OnFailure(Consumer<? super F>, Class<? extends F>) - Constructor for class org.osgi.util.promise.PromiseImpl.OnFailure
- onResolve(Runnable) - Method in interface org.osgi.util.promise.Promise
-
Register a callback to be called when this Promise is resolved.
- onResolve(Runnable) - Method in class org.osgi.util.promise.PromiseImpl
-
Register a callback to be called when this Promise is resolved.
- onSuccess(Consumer<? super T>) - Method in class org.osgi.util.promise.FailedPromiseImpl
-
Register a callback to be called with the result of this Promise when this Promise is resolved successfully.
- onSuccess(Consumer<? super T>) - Method in interface org.osgi.util.promise.Promise
-
Register a callback to be called with the result of this Promise when this Promise is resolved successfully.
- onSuccess(Consumer<? super T>) - Method in class org.osgi.util.promise.PromiseImpl
-
Register a callback to be called with the result of this Promise when this Promise is resolved successfully.
- OnSuccess(Consumer<? super T>) - Constructor for class org.osgi.util.promise.PromiseImpl.OnSuccess
- operation - Variable in class org.osgi.util.promise.DeferredPromiseImpl.Delay
- Option() - Constructor for enum org.osgi.util.promise.PromiseFactory.Option
- orDone() - Method in class org.osgi.util.promise.DeferredPromiseImpl
-
Return a resolved PromiseImpl if this DeferredPromiseImpl is resolved.
- org.osgi.util.promise - package org.osgi.util.promise
-
Promise Package Version 1.3.
P
- predicate - Variable in class org.osgi.util.promise.DeferredPromiseImpl.Filter
- promise - Variable in class org.osgi.util.promise.Deferred
-
The Promise associated with this Deferred.
- promise - Variable in class org.osgi.util.promise.DeferredPromiseImpl.Chain
- promise - Variable in class org.osgi.util.promise.DeferredPromiseImpl.ChainImpl
- promise - Variable in class org.osgi.util.promise.DeferredPromiseImpl.FallbackTo
- promise - Variable in class org.osgi.util.promise.DeferredPromiseImpl.Filter
- promise - Variable in class org.osgi.util.promise.DeferredPromiseImpl.FlatMap
- promise - Variable in class org.osgi.util.promise.DeferredPromiseImpl.Map
- promise - Variable in class org.osgi.util.promise.DeferredPromiseImpl.Recover
- promise - Variable in class org.osgi.util.promise.DeferredPromiseImpl.RecoverWith
- promise - Variable in class org.osgi.util.promise.DeferredPromiseImpl.ResolveWith
- promise - Variable in class org.osgi.util.promise.DeferredPromiseImpl.Then
- promise - Variable in class org.osgi.util.promise.DeferredPromiseImpl.ThenAccept
- promise - Variable in class org.osgi.util.promise.DeferredPromiseImpl.Timeout
- Promise<T> - Interface in org.osgi.util.promise
-
A Promise of a value.
- promiseCount - Variable in class org.osgi.util.promise.PromiseFactory.All
- PromiseFactory - Class in org.osgi.util.promise
-
Promise factory to create Deferred and Promise objects.
- PromiseFactory(Executor) - Constructor for class org.osgi.util.promise.PromiseFactory
-
Create a new PromiseFactory with the specified callback executor.
- PromiseFactory(Executor, ScheduledExecutorService) - Constructor for class org.osgi.util.promise.PromiseFactory
-
Create a new PromiseFactory with the specified callback executor and specified scheduled executor.
- PromiseFactory(Executor, ScheduledExecutorService, PromiseFactory.Option...) - Constructor for class org.osgi.util.promise.PromiseFactory
-
Create a new PromiseFactory with the specified callback executor, specified scheduled executor, and specified options.
- PromiseFactory.All<T,S extends T> - Class in org.osgi.util.promise
-
A callback used to resolve the specified Promise when the specified list of Promises are resolved for the
PromiseFactory.all(Collection)method. - PromiseFactory.DefaultExecutors - Class in org.osgi.util.promise
-
Default executors for Promises.
- PromiseFactory.DefaultExecutors.ScheduledExecutor - Class in org.osgi.util.promise
-
ScheduledThreadPoolExecutor for scheduled execution.
- PromiseFactory.InlineExecutor - Class in org.osgi.util.promise
-
An Executor implementation which executes the task immediately on the thread calling the
Executor.executemethod. - PromiseFactory.Option - Enum in org.osgi.util.promise
-
Defines the options for a Promise factory.
- PromiseImpl<T> - Class in org.osgi.util.promise
-
Abstract Promise implementation.
- PromiseImpl(PromiseFactory) - Constructor for class org.osgi.util.promise.PromiseImpl
-
Initialize this Promise.
- PromiseImpl.InlineCallback - Interface in org.osgi.util.promise
-
Marker interface for internal callbacks which do not call user code and should be run on the current thread for an already resolved promise.
- PromiseImpl.OnFailure<F> - Class in org.osgi.util.promise
-
A callback used for the
PromiseImpl.onFailure(Consumer, Class)method. - PromiseImpl.OnSuccess - Class in org.osgi.util.promise
-
A callback used for the
PromiseImpl.onSuccess(Consumer)method. - PromiseImpl.Result<R> - Interface in org.osgi.util.promise
-
A consumer of the result of a Promise.
- PromiseImpl.ToCompletionStage - Class in org.osgi.util.promise
-
A callback used for the
PromiseImpl.toCompletionStage()method. - promises - Variable in class org.osgi.util.promise.PromiseFactory.All
- Promises - Class in org.osgi.util.promise
-
Static helper methods for
Promises. - Promises() - Constructor for class org.osgi.util.promise.Promises
R
- recover(Function<Promise<?>, ? extends T>) - Method in interface org.osgi.util.promise.Promise
-
Recover from a failure of this Promise with a recovery value.
- recover(Function<Promise<?>, ? extends T>) - Method in class org.osgi.util.promise.PromiseImpl
-
Recover from a failure of this Promise with a recovery value.
- recover(Function<Promise<?>, ? extends T>) - Method in class org.osgi.util.promise.ResolvedPromiseImpl
-
Recover from a failure of this Promise with a recovery value.
- recover(Function<Promise<?>, ? extends T>, Class<?>) - Method in interface org.osgi.util.promise.Promise
-
Recover from a failure of this Promise with a recovery value if the failure is an instance of a failure type.
- recover(Function<Promise<?>, ? extends T>, Class<?>) - Method in class org.osgi.util.promise.PromiseImpl
-
Recover from a failure of this Promise with a recovery value if the failure is an instance of a failure type.
- recover(Function<Promise<?>, ? extends T>, Class<?>) - Method in class org.osgi.util.promise.ResolvedPromiseImpl
-
Recover from a failure of this Promise with a recovery value if the failure is an instance of a failure type.
- Recover(PromiseImpl<T>, Function<Promise<?>, ? extends T>, Class<?>) - Constructor for class org.osgi.util.promise.DeferredPromiseImpl.Recover
- recoverWith(Function<Promise<?>, Promise<? extends T>>) - Method in interface org.osgi.util.promise.Promise
-
Recover from a failure of this Promise with a recovery Promise.
- recoverWith(Function<Promise<?>, Promise<? extends T>>) - Method in class org.osgi.util.promise.PromiseImpl
-
Recover from a failure of this Promise with a recovery Promise.
- recoverWith(Function<Promise<?>, Promise<? extends T>>) - Method in class org.osgi.util.promise.ResolvedPromiseImpl
-
Recover from a failure of this Promise with a recovery Promise.
- recoverWith(Function<Promise<?>, Promise<? extends T>>, Class<?>) - Method in interface org.osgi.util.promise.Promise
-
Recover from a failure of this Promise with a recovery Promise if the failure is an instance of a failure type.
- recoverWith(Function<Promise<?>, Promise<? extends T>>, Class<?>) - Method in class org.osgi.util.promise.PromiseImpl
-
Recover from a failure of this Promise with a recovery Promise if the failure is an instance of a failure type.
- recoverWith(Function<Promise<?>, Promise<? extends T>>, Class<?>) - Method in class org.osgi.util.promise.ResolvedPromiseImpl
-
Recover from a failure of this Promise with a recovery Promise if the failure is an instance of a failure type.
- RecoverWith(PromiseImpl<T>, Function<Promise<?>, Promise<? extends T>>, Class<?>) - Constructor for class org.osgi.util.promise.DeferredPromiseImpl.RecoverWith
- recovery - Variable in class org.osgi.util.promise.DeferredPromiseImpl.Recover
- recovery - Variable in class org.osgi.util.promise.DeferredPromiseImpl.RecoverWith
- rejectedExecution(Runnable, ThreadPoolExecutor) - Method in class org.osgi.util.promise.PromiseFactory.DefaultExecutors
-
Call the callback using the caller's thread because the thread pool rejected the execution.
- resolve(T) - Method in class org.osgi.util.promise.Deferred
-
Successfully resolve the Promise associated with this Deferred.
- resolve(T, Throwable) - Method in class org.osgi.util.promise.DeferredPromiseImpl
-
Resolve this Promise.
- resolved - Variable in class org.osgi.util.promise.DeferredPromiseImpl
-
A CountDownLatch to manage the resolved state of this Promise.
- resolved(T) - Method in class org.osgi.util.promise.PromiseFactory
-
Returns a new Promise that has been resolved with the specified value.
- resolved(T) - Static method in class org.osgi.util.promise.Promises
-
Returns a new Promise that has been resolved with the specified value.
- resolved(V) - Method in class org.osgi.util.promise.PromiseImpl
-
Return a new
ResolvedPromiseImplusing thePromiseFactoryof this PromiseImpl. - ResolvedPromiseImpl<T> - Class in org.osgi.util.promise
-
Resolved Promise implementation.
- ResolvedPromiseImpl(T, PromiseFactory) - Constructor for class org.osgi.util.promise.ResolvedPromiseImpl
-
Initialize this resolved Promise.
- resolvedWith(CompletionStage<? extends T>) - Method in class org.osgi.util.promise.PromiseFactory
-
Returns a new Promise that will be resolved with the result of the specified CompletionStage.
- resolvedWith(Promise<? extends T>) - Method in class org.osgi.util.promise.PromiseFactory
-
Returns a new Promise that will be resolved with the specified Promise.
- resolveWith(CompletionStage<? extends T>) - Method in class org.osgi.util.promise.Deferred
-
Resolve the Promise associated with this Deferred with the specified CompletionStage.
- resolveWith(CompletionStage<? extends T>) - Method in class org.osgi.util.promise.DeferredPromiseImpl
-
Resolve this Promise with the specified CompletionStage.
- resolveWith(Promise<? extends T>) - Method in class org.osgi.util.promise.Deferred
-
Resolve the Promise associated with this Deferred with the specified Promise.
- resolveWith(Promise<? extends T>) - Method in class org.osgi.util.promise.DeferredPromiseImpl
-
Resolve this Promise with the specified Promise.
- ResolveWith(DeferredPromiseImpl<Void>) - Constructor for class org.osgi.util.promise.DeferredPromiseImpl.ResolveWith
- ResolveWith(Promise<? extends T>, DeferredPromiseImpl<Void>) - Constructor for class org.osgi.util.promise.DeferredPromiseImpl.ResolveWith
- result(Promise<? extends R>, PromiseImpl.Result<? super R>) - Static method in class org.osgi.util.promise.PromiseImpl
-
Accept the result of the specified Promise.
- result(PromiseImpl.Result<? super T>) - Method in class org.osgi.util.promise.DeferredPromiseImpl
-
Accept the result of this PromiseImpl.
- result(PromiseImpl.Result<? super T>) - Method in class org.osgi.util.promise.FailedPromiseImpl
-
Accept the result of this PromiseImpl.
- result(PromiseImpl.Result<? super T>) - Method in class org.osgi.util.promise.PromiseImpl
-
Accept the result of this PromiseImpl.
- result(PromiseImpl.Result<? super T>) - Method in class org.osgi.util.promise.ResolvedPromiseImpl
-
Accept the result of this PromiseImpl.
- run() - Method in class org.osgi.util.promise.DeferredPromiseImpl.Chain
- run() - Method in class org.osgi.util.promise.DeferredPromiseImpl.ChainImpl
- run() - Method in class org.osgi.util.promise.DeferredPromiseImpl.Delay
- run() - Method in class org.osgi.util.promise.DeferredPromiseImpl.FallbackChain
- run() - Method in class org.osgi.util.promise.DeferredPromiseImpl.FallbackTo
- run() - Method in class org.osgi.util.promise.DeferredPromiseImpl.Filter
- run() - Method in class org.osgi.util.promise.DeferredPromiseImpl.FlatMap
- run() - Method in class org.osgi.util.promise.DeferredPromiseImpl.Map
- run() - Method in class org.osgi.util.promise.DeferredPromiseImpl.Recover
- run() - Method in class org.osgi.util.promise.DeferredPromiseImpl.RecoverWith
- run() - Method in class org.osgi.util.promise.DeferredPromiseImpl.ResolveWith
- run() - Method in class org.osgi.util.promise.DeferredPromiseImpl.Submit
- run() - Method in class org.osgi.util.promise.DeferredPromiseImpl.Then
- run() - Method in class org.osgi.util.promise.DeferredPromiseImpl.ThenAccept
- run() - Method in class org.osgi.util.promise.DeferredPromiseImpl.Timeout
- run() - Method in class org.osgi.util.promise.PromiseFactory.All
- run() - Method in class org.osgi.util.promise.PromiseFactory.DefaultExecutors
-
Shutdown hook
- run() - Method in class org.osgi.util.promise.PromiseImpl.OnFailure
- run() - Method in class org.osgi.util.promise.PromiseImpl.OnSuccess
- run() - Method in class org.osgi.util.promise.PromiseImpl.ToCompletionStage
S
- schedule(Runnable, long, TimeUnit) - Method in class org.osgi.util.promise.PromiseImpl
-
Schedule a operation on the scheduled executor.
- scheduledExecutor - Static variable in class org.osgi.util.promise.PromiseFactory.DefaultExecutors
- scheduledExecutor - Variable in class org.osgi.util.promise.PromiseFactory
-
The executor to use for scheduled operations.
- scheduledExecutor() - Static method in class org.osgi.util.promise.PromiseFactory.DefaultExecutors
- scheduledExecutor() - Method in class org.osgi.util.promise.PromiseFactory
-
Returns the scheduled executor to use for scheduled operations.
- ScheduledExecutor(int, ThreadFactory) - Constructor for class org.osgi.util.promise.PromiseFactory.DefaultExecutors.ScheduledExecutor
- serialVersionUID - Static variable in exception org.osgi.util.promise.FailedPromisesException
- serialVersionUID - Static variable in exception org.osgi.util.promise.TimeoutException
- shutdownHookInstalled - Variable in class org.osgi.util.promise.PromiseFactory.DefaultExecutors
- submit(Callable<? extends T>) - Method in class org.osgi.util.promise.PromiseFactory
-
Returns a new Promise that will hold the result of the specified task.
- Submit(Callable<? extends T>) - Constructor for class org.osgi.util.promise.DeferredPromiseImpl.Submit
- success - Variable in class org.osgi.util.promise.DeferredPromiseImpl.Then
- success - Variable in class org.osgi.util.promise.PromiseImpl.OnSuccess
- Success<T,R> - Interface in org.osgi.util.promise
-
Success callback for a Promise.
T
- task - Variable in class org.osgi.util.promise.DeferredPromiseImpl.Submit
- then(Success<? super T, ? extends R>) - Method in interface org.osgi.util.promise.Promise
-
Chain a new Promise to this Promise with a Success callback.
- then(Success<? super T, ? extends R>) - Method in class org.osgi.util.promise.PromiseImpl
-
Chain a new Promise to this Promise with a Success callback.
- then(Success<? super T, ? extends R>, Failure) - Method in class org.osgi.util.promise.FailedPromiseImpl
-
Chain a new Promise to this Promise with Success and Failure callbacks.
- then(Success<? super T, ? extends R>, Failure) - Method in interface org.osgi.util.promise.Promise
-
Chain a new Promise to this Promise with Success and Failure callbacks.
- then(Success<? super T, ? extends R>, Failure) - Method in class org.osgi.util.promise.PromiseImpl
-
Chain a new Promise to this Promise with Success and Failure callbacks.
- then(Success<? super T, ? extends R>, Failure) - Method in class org.osgi.util.promise.ResolvedPromiseImpl
-
Chain a new Promise to this Promise with Success and Failure callbacks.
- Then(PromiseImpl<P>, Success<? super P, ? extends T>, Failure) - Constructor for class org.osgi.util.promise.DeferredPromiseImpl.Then
- thenAccept(Consumer<? super T>) - Method in class org.osgi.util.promise.FailedPromiseImpl
-
Chain a new Promise to this Promise with a Consumer callback that receives the value of this Promise when it is successfully resolved.
- thenAccept(Consumer<? super T>) - Method in interface org.osgi.util.promise.Promise
-
Chain a new Promise to this Promise with a Consumer callback that receives the value of this Promise when it is successfully resolved.
- thenAccept(Consumer<? super T>) - Method in class org.osgi.util.promise.PromiseImpl
-
Chain a new Promise to this Promise with a Consumer callback that receives the value of this Promise when it is successfully resolved.
- ThenAccept(PromiseImpl<T>, Consumer<? super T>) - Constructor for class org.osgi.util.promise.DeferredPromiseImpl.ThenAccept
- timeout(long) - Method in class org.osgi.util.promise.FailedPromiseImpl
-
Time out the resolution of this Promise.
- timeout(long) - Method in interface org.osgi.util.promise.Promise
-
Time out the resolution of this Promise.
- timeout(long) - Method in class org.osgi.util.promise.PromiseImpl
-
Time out the resolution of this Promise.
- timeout(long) - Method in class org.osgi.util.promise.ResolvedPromiseImpl
-
Time out the resolution of this Promise.
- Timeout(PromiseImpl<T>, long) - Constructor for class org.osgi.util.promise.DeferredPromiseImpl.Timeout
- TimeoutException - Exception in org.osgi.util.promise
-
Timeout exception for a Promise.
- TimeoutException() - Constructor for exception org.osgi.util.promise.TimeoutException
-
Create a new
TimeoutException. - toCompletionStage() - Method in class org.osgi.util.promise.FailedPromiseImpl
-
Returns a new CompletionStage that will be resolved with the result of this Promise.
- toCompletionStage() - Method in interface org.osgi.util.promise.Promise
-
Returns a new CompletionStage that will be resolved with the result of this Promise.
- toCompletionStage() - Method in class org.osgi.util.promise.PromiseImpl
-
Returns a new CompletionStage that will be resolved with the result of this Promise.
- toCompletionStage() - Method in class org.osgi.util.promise.ResolvedPromiseImpl
-
Returns a new CompletionStage that will be resolved with the result of this Promise.
- ToCompletionStage(CompletableFuture<T>) - Constructor for class org.osgi.util.promise.PromiseImpl.ToCompletionStage
- toPromise() - Method in class org.osgi.util.promise.PromiseFactory
-
Returns a
Collectorthat accumulates the results of the input Promises into a newPromiseFactory.all(Collection)Promise. - toString() - Method in class org.osgi.util.promise.Deferred
-
Returns a string representation of the associated Promise.
- toString() - Method in class org.osgi.util.promise.DeferredPromiseImpl
- toString() - Method in class org.osgi.util.promise.FailedPromiseImpl
- toString() - Method in class org.osgi.util.promise.ResolvedPromiseImpl
- tryResolve(T, Throwable) - Method in class org.osgi.util.promise.DeferredPromiseImpl
-
Try to resolve this Promise.
U
- uncaughtException(Throwable) - Static method in class org.osgi.util.promise.PromiseImpl
-
Handle an uncaught exception from a Runnable.
V
- value - Variable in class org.osgi.util.promise.DeferredPromiseImpl
-
The value of this Promise if successfully resolved.
- value - Variable in class org.osgi.util.promise.ResolvedPromiseImpl
-
The value of this resolved Promise.
- valueOf(String) - Static method in enum org.osgi.util.promise.PromiseFactory.Option
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.osgi.util.promise.PromiseFactory.Option
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- with - Variable in class org.osgi.util.promise.DeferredPromiseImpl.ResolveWith
All Classes All Packages