Package org.opennms.core.fiber
Interface InitializableFiber
-
- All Superinterfaces:
Fiber
public interface InitializableFiber extends Fiber
This class is used to extend the
Fiber
interface so that is has a concept of a life cycle. Prior to starting the fiber theinit
method will be invoked. Likewise, prior to garbage collection thedestroy
method should be invoked.- Author:
- Brian Weaver
-
-
Field Summary
-
Fields inherited from interface org.opennms.core.fiber.Fiber
RUNNING, START_PENDING, STARTING, STATUS_NAMES, STOP_PENDING, STOPPED
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
destroy()
This method is used to stop a currently runningFiber
.void
init()
This method is used to start the initilization process of theFiber
, which should eventually transition to aRUNNING
status.
-
-
-
Method Detail
-
init
void init()
This method is used to start the initilization process of theFiber
, which should eventually transition to aRUNNING
status.
-
destroy
void destroy()
This method is used to stop a currently runningFiber
. Once invoked theFiber
should begin it's shutdown process. Depending on the implementation, this method may block until theFiber
terminates.
-
-