Package | Description |
---|---|
io.druid.guice | |
io.druid.java.util.common.lifecycle |
Constructor and Description |
---|
LifecycleScope(Lifecycle.Stage stage) |
Modifier and Type | Method and Description |
---|---|
static Lifecycle.Stage |
Lifecycle.Stage.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Lifecycle.Stage[] |
Lifecycle.Stage.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
Lifecycle.addHandler(Lifecycle.Handler handler,
Lifecycle.Stage stage)
Adds a handler to the Lifecycle.
|
<T> T |
Lifecycle.addManagedInstance(T o,
Lifecycle.Stage stage)
Adds a "managed" instance (annotated with
LifecycleStart and LifecycleStop ) to the Lifecycle. |
void |
Lifecycle.addMaybeStartHandler(Lifecycle.Handler handler,
Lifecycle.Stage stage)
Adds a handler to the Lifecycle and starts it if the lifecycle has already been started.
|
<T> T |
Lifecycle.addMaybeStartManagedInstance(T o,
Lifecycle.Stage stage)
Adds a "managed" instance (annotated with
LifecycleStart and LifecycleStop ) to the Lifecycle
and starts it if the lifecycle has already been started. |
<T> T |
Lifecycle.addMaybeStartStartCloseInstance(T o,
Lifecycle.Stage stage)
Adds an instance with a start() and/or close() method to the Lifecycle and starts it if the lifecycle has
already been started.
|
<T> T |
Lifecycle.addStartCloseInstance(T o,
Lifecycle.Stage stage)
Adds an instance with a start() and/or close() method to the Lifecycle.
|
Copyright © 2011–2018. All rights reserved.