Interface ServerContainer.RunningInstance

Enclosing interface:
ServerContainer

public static interface ServerContainer.RunningInstance
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Issues all the necessary signals to cleanly shut down the server.
    void
    Waits for shutdown.
    void
    waitForShutdown(long timeout, TimeUnit timeUnit)
    Waits for shutdown with the given timeout and time unit.
  • Method Details

    • waitForShutdown

      void waitForShutdown() throws InterruptedException
      Waits for shutdown. Note that this will wait indefinitely until the call to shutdown() is made. This does nothing to change the state of the currently running server.
      Throws:
      InterruptedException
    • waitForShutdown

      void waitForShutdown(long timeout, TimeUnit timeUnit) throws InterruptedException
      Waits for shutdown with the given timeout and time unit. Note that this will wait until a call to shutdown() is made and does nothing to affect the state of the running server.
      Parameters:
      timeout -
      timeUnit -
      Throws:
      InterruptedException
    • shutdown

      void shutdown()
      Issues all the necessary signals to cleanly shut down the server. Note that this call will immediately return. The server may not be