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
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 © 2015. All rights reserved.