Package | Description |
---|---|
org.infinispan.commons.api |
Commons API package
|
org.infinispan.commons.util.concurrent |
Provides commons interfaces and classes related to concurrency
|
Modifier and Type | Method and Description |
---|---|
NotifyingFuture<Void> |
AsyncCache.clearAsync()
Asynchronous version of
#clear() . |
NotifyingFuture<V> |
AsyncCache.getAsync(K key)
Asynchronous version of
#get(Object) that allows user code to
retrieve the value associated with a key at a later stage, hence allowing
multiple parallel get requests to be sent. |
NotifyingFuture<Void> |
AsyncCache.putAllAsync(Map<? extends K,? extends V> data)
Asynchronous version of
#putAll(Map) . |
NotifyingFuture<Void> |
AsyncCache.putAllAsync(Map<? extends K,? extends V> data,
long lifespan,
TimeUnit unit)
Asynchronous version of
#putAll(Map, long, TimeUnit) . |
NotifyingFuture<Void> |
AsyncCache.putAllAsync(Map<? extends K,? extends V> data,
long lifespan,
TimeUnit lifespanUnit,
long maxIdle,
TimeUnit maxIdleUnit)
Asynchronous version of
#putAll(Map, long, TimeUnit, long, TimeUnit) . |
NotifyingFuture<V> |
AsyncCache.putAsync(K key,
V value)
Asynchronous version of
#put(Object, Object) . |
NotifyingFuture<V> |
AsyncCache.putAsync(K key,
V value,
long lifespan,
TimeUnit unit)
Asynchronous version of
#put(Object, Object, long, TimeUnit) . |
NotifyingFuture<V> |
AsyncCache.putAsync(K key,
V value,
long lifespan,
TimeUnit lifespanUnit,
long maxIdle,
TimeUnit maxIdleUnit)
Asynchronous version of
#put(Object, Object, long, TimeUnit, long, TimeUnit) . |
NotifyingFuture<V> |
AsyncCache.putIfAbsentAsync(K key,
V value)
Asynchronous version of
#putIfAbsent(Object, Object) . |
NotifyingFuture<V> |
AsyncCache.putIfAbsentAsync(K key,
V value,
long lifespan,
TimeUnit unit)
Asynchronous version of
#putIfAbsent(Object, Object, long, TimeUnit) . |
NotifyingFuture<V> |
AsyncCache.putIfAbsentAsync(K key,
V value,
long lifespan,
TimeUnit lifespanUnit,
long maxIdle,
TimeUnit maxIdleUnit)
Asynchronous version of
#putIfAbsent(Object, Object, long, TimeUnit, long, TimeUnit) . |
NotifyingFuture<V> |
AsyncCache.removeAsync(Object key)
Asynchronous version of
#remove(Object) . |
NotifyingFuture<Boolean> |
AsyncCache.removeAsync(Object key,
Object value)
Asynchronous version of
#remove(Object, Object) . |
NotifyingFuture<V> |
AsyncCache.replaceAsync(K key,
V value)
Asynchronous version of
#replace(Object, Object) . |
NotifyingFuture<V> |
AsyncCache.replaceAsync(K key,
V value,
long lifespan,
TimeUnit unit)
Asynchronous version of
#replace(Object, Object, long, TimeUnit) . |
NotifyingFuture<V> |
AsyncCache.replaceAsync(K key,
V value,
long lifespan,
TimeUnit lifespanUnit,
long maxIdle,
TimeUnit maxIdleUnit)
Asynchronous version of
#replace(Object, Object, long, TimeUnit, long, TimeUnit) . |
NotifyingFuture<Boolean> |
AsyncCache.replaceAsync(K key,
V oldValue,
V newValue)
Asynchronous version of
#replace(Object, Object, Object) . |
NotifyingFuture<Boolean> |
AsyncCache.replaceAsync(K key,
V oldValue,
V newValue,
long lifespan,
TimeUnit unit)
Asynchronous version of
#replace(Object, Object, Object, long, TimeUnit) . |
NotifyingFuture<Boolean> |
AsyncCache.replaceAsync(K key,
V oldValue,
V newValue,
long lifespan,
TimeUnit lifespanUnit,
long maxIdle,
TimeUnit maxIdleUnit)
Asynchronous version of
#replace(Object, Object, Object, long, TimeUnit, long, TimeUnit) . |
Modifier and Type | Interface and Description |
---|---|
interface |
NotifyingNotifiableFuture<T>
An internal interface which adds the ability to inform the future of completion.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractInProcessNotifyingFuture<V>
An abstract NotifyingFuture that has "completed"
|
class |
BaseNotifyingFuture<T> |
class |
CompositeNotifyingFuture<T>
CompositeNotifyingFuture aggregates several NotifyingFuture and completes when all of them complete.
|
class |
NoOpFuture<E>
A future that doesn't do anything and simply returns a given return value.
|
class |
NotifyingFutureImpl<T>
Constructs an instance of a
NotifyingFuture . |
Modifier and Type | Method and Description |
---|---|
static <T> NotifyingFuture<Void> |
Futures.andThen(NotifyingFuture<T> future,
Runnable after) |
static <T> NotifyingFuture<Void> |
Futures.andThen(NotifyingFuture<T> future,
Runnable after,
ExecutorService executorService)
Executes a task asynchronously after a future completion
|
NotifyingFuture<E> |
NoOpFuture.attachListener(FutureListener<E> eFutureListener) |
NotifyingFuture<T> |
NotifyingFuture.attachListener(FutureListener<T> listener)
Attaches a listener and returns the same future instance, to allow for 'building'.
|
NotifyingFuture<T> |
BaseNotifyingFuture.attachListener(FutureListener<T> objectFutureListener) |
NotifyingFuture<V> |
AbstractInProcessNotifyingFuture.attachListener(FutureListener<V> futureListener) |
static <T> NotifyingFuture<List<T>> |
Futures.combine(List<NotifyingFuture<T>> futures)
Returns a new
NotifyingFuture that will be completed when all of
the given futures completes. |
Modifier and Type | Method and Description |
---|---|
static <T> NotifyingFuture<Void> |
Futures.andThen(NotifyingFuture<T> future,
Runnable after) |
static <T> NotifyingFuture<Void> |
Futures.andThen(NotifyingFuture<T> future,
Runnable after,
ExecutorService executorService)
Executes a task asynchronously after a future completion
|
Modifier and Type | Method and Description |
---|---|
static <T> NotifyingFuture<List<T>> |
Futures.combine(List<NotifyingFuture<T>> futures)
Returns a new
NotifyingFuture that will be completed when all of
the given futures completes. |
Constructor and Description |
---|
CompositeNotifyingFuture(List<NotifyingFuture<T>> futures) |
Copyright © 2017 JBoss, a division of Red Hat. All rights reserved.