Package dev.getelements.elements.rt
Interface ServerContainer.RunningInstance
- Enclosing interface:
ServerContainer
public static interface ServerContainer.RunningInstance
-
Method Summary
Modifier and TypeMethodDescriptionvoid
shutdown()
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
Waits for shutdown. Note that this will wait indefinitely until the call toshutdown()
is made. This does nothing to change the state of the currently running server.- Throws:
InterruptedException
-
waitForShutdown
Waits for shutdown with the given timeout and time unit. Note that this will wait until a call toshutdown()
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
-