|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Contract public interface Activator
Contract for handling the activation and deactivation of run level services.
Method Summary | |
---|---|
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,
TimeUnit unit)
Wait for completion of run level progression. |
void |
deactivate(ActiveDescriptor<?> activeDescriptor)
Deactivate the run level service associated with given descriptor. |
Method Detail |
---|
void activate(ActiveDescriptor<?> activeDescriptor)
activeDescriptor
- the descriptorvoid deactivate(ActiveDescriptor<?> activeDescriptor)
activeDescriptor
- the descriptorvoid awaitCompletion() throws ExecutionException, InterruptedException, TimeoutException
ExecutionException
- if the completion code threw an exception
TimeoutException
- if the wait timed out
InterruptedException
- if the current thread was interrupted
while waitingvoid awaitCompletion(long timeout, TimeUnit unit) throws ExecutionException, InterruptedException, TimeoutException
timeout
- the timeout valueunit
- the time unit
ExecutionException
- if the completion code threw an exception
TimeoutException
- if the wait timed out
InterruptedException
- if the current thread was interrupted
while waiting
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |