@Contract public interface Activator
| Modifier and Type | Method and Description |
|---|---|
void |
activate(ActiveDescriptor<?> activeDescriptor)
Activate the run level service associated with given descriptor.
|
void |
awaitCompletion()
Wait for completion of run level progression.
|
void |
awaitCompletion(long timeout,
java.util.concurrent.TimeUnit unit)
Wait for completion of run level progression.
|
void |
deactivate(ActiveDescriptor<?> activeDescriptor)
Deactivate the run level service associated with given descriptor.
|
void activate(ActiveDescriptor<?> activeDescriptor)
activeDescriptor - the descriptorvoid deactivate(ActiveDescriptor<?> activeDescriptor)
activeDescriptor - the descriptorvoid awaitCompletion()
throws java.util.concurrent.ExecutionException,
java.lang.InterruptedException,
java.util.concurrent.TimeoutException
java.util.concurrent.ExecutionException - if the completion code threw an exceptionjava.util.concurrent.TimeoutException - if the wait timed outjava.lang.InterruptedException - if the current thread was interrupted
while waitingvoid awaitCompletion(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.util.concurrent.ExecutionException,
java.lang.InterruptedException,
java.util.concurrent.TimeoutException
timeout - the timeout valueunit - the time unitjava.util.concurrent.ExecutionException - if the completion code threw an exceptionjava.util.concurrent.TimeoutException - if the wait timed outjava.lang.InterruptedException - if the current thread was interrupted
while waitingCopyright © 2013 Oracle Corporation. All Rights Reserved.