public interface GracefulShutdownListener
Transport is being shutdown.
Keep in mind that there is no guarantee that all listeners will be invoked before the transport is terminated (e.g.,
timed graceful shutdown or a graceful shutdown() that was initiated and then shutdownNow() is later invoked.| Modifier and Type | Method and Description |
|---|---|
void |
shutdownForced()
Invoked when the transport is being shutdown forcefully.
|
void |
shutdownRequested(ShutdownContext shutdownContext)
Invoked when an attempt is made to shutdown the transport gracefully.
|
void shutdownRequested(ShutdownContext shutdownContext)
shutdownContext - the ShutdownContext for this shutdown request.void shutdownForced()
Copyright © 2017–2020 Oracle Corporation. All rights reserved.