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 the
init method will be invoked. Likewise, prior to garbage
collection the destroy method should be invoked.
RUNNING, START_PENDING, STARTING, STATUS_NAMES, STOP_PENDING, STOPPED| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
This method is used to stop a currently running
Fiber. |
void |
init()
This method is used to start the initilization process of the
Fiber, which should eventually transition to a
RUNNING status. |
void init()
Fiber, which should eventually transition to a
RUNNING status.void destroy()
Fiber.
Once invoked the Fiber should begin it's shutdown process.
Depending on the implementation, this method may block until the
Fiber terminates.Copyright © 2022. All rights reserved.