public static class MultiBackgroundInitializer.MultiBackgroundInitializerResults
extends java.lang.Object
MultiBackgroundInitializer
. Objects of this inner
class are returned by MultiBackgroundInitializer.initialize()
.
They allow access to all result objects produced by the
BackgroundInitializer
objects managed by the owning instance. It
is also possible to retrieve status information about single
BackgroundInitializer
s, i.e. whether they completed normally or
caused an exception.Modifier and Type | Method and Description |
---|---|
ConcurrentException |
getException(java.lang.String name)
Returns the
ConcurrentException object that was thrown by the
BackgroundInitializer with the given name. |
BackgroundInitializer<?> |
getInitializer(java.lang.String name)
Returns the
BackgroundInitializer with the given name. |
java.lang.Object |
getResultObject(java.lang.String name)
Returns the result object produced by the
BackgroundInitializer with the given name. |
java.util.Set<java.lang.String> |
initializerNames()
Returns a set with the names of all
BackgroundInitializer
objects managed by the MultiBackgroundInitializer . |
boolean |
isException(java.lang.String name)
Returns a flag whether the
BackgroundInitializer with the
given name caused an exception. |
boolean |
isSuccessful()
Returns a flag whether the whole initialization was successful.
|
public BackgroundInitializer<?> getInitializer(java.lang.String name)
BackgroundInitializer
with the given name. If the
name cannot be resolved, an exception is thrown.name
- the name of the BackgroundInitializer
BackgroundInitializer
with this namejava.util.NoSuchElementException
- if the name cannot be resolvedpublic java.lang.Object getResultObject(java.lang.String name)
BackgroundInitializer
with the given name. This is the object
returned by the initializer's initialize()
method. If this
BackgroundInitializer
caused an exception, null is
returned. If the name cannot be resolved, an exception is thrown.name
- the name of the BackgroundInitializer
BackgroundInitializer
java.util.NoSuchElementException
- if the name cannot be resolvedpublic boolean isException(java.lang.String name)
BackgroundInitializer
with the
given name caused an exception.name
- the name of the BackgroundInitializer
java.util.NoSuchElementException
- if the name cannot be resolvedpublic ConcurrentException getException(java.lang.String name)
ConcurrentException
object that was thrown by the
BackgroundInitializer
with the given name. If this
initializer did not throw an exception, the return value is
null. If the name cannot be resolved, an exception is thrown.name
- the name of the BackgroundInitializer
java.util.NoSuchElementException
- if the name cannot be resolvedpublic java.util.Set<java.lang.String> initializerNames()
BackgroundInitializer
objects managed by the MultiBackgroundInitializer
.BackgroundInitializer
objectspublic boolean isSuccessful()
Copyright © 2010 - 2020 Adobe. All Rights Reserved