Class GracefulUndertowShutdown
java.lang.Object
org.qubership.atp.environments.service.rest.gracefulshutdown.GracefulUndertowShutdown
- All Implemented Interfaces:
io.undertow.server.HandlerWrapper,EventListener,org.springframework.context.ApplicationListener<org.springframework.context.event.ContextClosedEvent>
public class GracefulUndertowShutdown
extends Object
implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextClosedEvent>, io.undertow.server.HandlerWrapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonApplicationEvent(org.springframework.context.event.ContextClosedEvent event) io.undertow.server.HttpHandlerwrap(io.undertow.server.HttpHandler handler)
-
Constructor Details
-
GracefulUndertowShutdown
public GracefulUndertowShutdown()
-
-
Method Details
-
wrap
public io.undertow.server.HttpHandler wrap(io.undertow.server.HttpHandler handler) - Specified by:
wrapin interfaceio.undertow.server.HandlerWrapper
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.event.ContextClosedEvent event) - Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.context.event.ContextClosedEvent>
-