Interface Lifecycle

All Known Implementing Classes:
AbstractLifecycle, NeonClient, NeonHost, NeonRelay

public interface Lifecycle
Lifecycle contract for Neon components that have a distinct startup and shutdown sequence.

State transitions: CREATED → STARTING → RUNNING on successful start; RUNNING → STOPPING → STOPPED on successful stop. Any exception during a transition moves the component to FAILED.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    Lifecycle states for a Neon component.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the current lifecycle state.
    boolean
    Returns true if the component is in the Lifecycle.State.RUNNING state.
    void
    Starts the component.
    void
    Stops the component.