Module io.avaje.jex
Package io.avaje.jex

Interface Jex.Server

Enclosing interface:
Jex

public static interface Jex.Server
The running server.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onShutdown(Runnable onShutdown)
    Register a function to execute LAST on shutdown after all the normal lifecycle shutdown functions have run.
    default int
    Return the port the server is using.
    default void
     
    void
    Shutdown the server.
  • Method Details

    • onShutdown

      void onShutdown(Runnable onShutdown)
      Register a function to execute LAST on shutdown after all the normal lifecycle shutdown functions have run.

      Typically, we desire to shut down logging (e.g. Log4J) last.

    • shutdown

      void shutdown()
      Shutdown the server.
    • port

      default int port()
      Return the port the server is using.
    • restart

      default void restart()