public interface LifeCycle
Modifier and Type | Interface and Description |
---|---|
static class |
LifeCycle.Status
States that are possible for a component.
|
Modifier and Type | Method and Description |
---|---|
Exception |
getException() |
LifeCycle.Status |
getStatus() |
void |
shutdown()
Requests shutdown of the component.
|
void |
shutdown(long waitMs)
Requests shutdown, but will only wait @link waitms milliseconds
|
void |
start()
Asynchronously starts the component
|
LifeCycle.Status getStatus()
Exception getException()
@PostConstruct void start()
@PreDestroy void shutdown()
void shutdown(long waitMs)
waitMs
- maximum time to wait in millisecondsCopyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.