| Modifier and Type | Class and Description |
|---|---|
| private static interface | |
| private static class | |
| private class | CurrentTaskFuture.
Goes down all the way to the proposed level |
| private static class | |
| private static class | |
| private static class | |
| private class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final List | |
| private final List | |
| private final AsyncRunLevelContext | |
| private boolean | |
| private final long | |
| private boolean | |
| private CurrentTaskFuture. | |
| private final Executor | |
| private boolean | |
| private final ServiceLocator | |
| private final ReentrantLock | |
| private final int | |
| private int | |
| private final Timer | |
| private CurrentTaskFuture. | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | CurrentTaskFuture(AsyncRunLevelContext asyncContext, Executor executor, ServiceLocator locator, int proposedLevel, int maxThreads, boolean useThreads, long cancelTimeout, Timer timer)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | cancel(boolean mayInterruptIfRunning)
Implements org. The cancel method attempts to cancel the current running job (if the job is not already completed or already cancelled). |
| public int | changeProposedLevel(int proposedLevel)
Implements org. Changes the proposedLevel of this future. |
| public Object | get()
Implements java. Waits if necessary for the computation to complete, and then retrieves its result. |
| public Object | get(long timeout, TimeUnit unit)
Implements java. Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available. |
| public int | getProposedLevel()
Implements org. This gets the level that this future job is attempting to get to |
| pack-priv void | |
| private void | go(CurrentTaskFuture.
|
| private static void | invokeOnCancelled(CurrentTaskFuture job, int levelAchieved, List<ServiceHandle<RunLevelListener>> listeners)
|
| private static ErrorInformation | invokeOnError(CurrentTaskFuture job, Throwable th, ErrorInformation.
|
| private void | invokeOnProgress(ChangeableRunLevelFuture job, int level, List<ServiceHandle<RunLevelListener>> listeners)
|
| private void | invokeOnProgressStarted(ChangeableRunLevelFuture job, int level, List<ServiceHandle<ProgressStartedListener>> listeners)
|
| private static final boolean | |
| public boolean | isCancelled()
Implements java. Returns |
| public boolean | |
| public boolean | isDown()
Implements org. Returns true if this job represents the system going from a higher level to a lower level. |
| public boolean | isUp()
Implements org. Returns true if this job represents the system going from a lower level to a higher level. |
| private static final boolean | |
| pack-priv static final boolean | |
| private void | |
| public String |