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 Details

    • GracefulUndertowShutdown

      public GracefulUndertowShutdown()
  • Method Details

    • wrap

      public io.undertow.server.HttpHandler wrap(io.undertow.server.HttpHandler handler)
      Specified by:
      wrap in interface io.undertow.server.HandlerWrapper
    • onApplicationEvent

      public void onApplicationEvent(org.springframework.context.event.ContextClosedEvent event)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextClosedEvent>