Package | Description |
---|---|
sirius.kernel.async |
Provides a framework for asynchronous execution of given tasks.
|
sirius.kernel.cache |
Provides a framework for building and using caches.
|
sirius.kernel.commons |
Provides common classes used by large parts of the framework.
|
Modifier and Type | Method and Description |
---|---|
<X> Promise<V> |
Promise.failChain(Promise<X> promise,
Callback<V> successHandler)
Forwards failures to the given promise, while sending successful value to the given successHandler.
|
Promise<V> |
Promise.onFailureCallback(Callback<Throwable> failureHandler)
Adds a completion handler to this promise which only handles the failed completion of the promise.
|
Promise<V> |
Promise.onSuccessCallback(Callback<V> successHandler)
Adds a completion handler to this promise which only handles the successful completion of the promise.
|
Modifier and Type | Method and Description |
---|---|
Cache<K,V> |
Cache.onRemove(Callback<Tuple<K,V>> onRemoveCallback)
Sets the remove callback which is invoked once a value is removed from the cache.
|
Modifier and Type | Method and Description |
---|---|
static void |
Reflection.walkHierarchy(Class<?> clazz,
Callback<Class<?>> handler)
Calls the given handler for each superclass of the given one.
|
Copyright © 2018. All rights reserved.