类 NacosGracefulShutdownDelegate

java.lang.Object
com.alibaba.cloud.nacos.registry.NacosGracefulShutdownDelegate
所有已实现的接口:
EventListener, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextClosedEvent>

public class NacosGracefulShutdownDelegate extends Object implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextClosedEvent>, org.springframework.context.ApplicationContextAware
作者:
uuuyuqi
  • 构造器详细资料

  • 方法详细资料

    • setApplicationContext

      public void setApplicationContext(@NonNull org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      指定者:
      setApplicationContext 在接口中 org.springframework.context.ApplicationContextAware
      抛出:
      org.springframework.beans.BeansException
    • onApplicationEvent

      public void onApplicationEvent(@NonNull org.springframework.context.event.ContextClosedEvent event)
      指定者:
      onApplicationEvent 在接口中 org.springframework.context.ApplicationListener<org.springframework.context.event.ContextClosedEvent>
    • doGracefulShutdown

      protected void doGracefulShutdown()
    • supportsAsyncExecution

      public boolean supportsAsyncExecution()
      指定者:
      supportsAsyncExecution 在接口中 org.springframework.context.ApplicationListener<org.springframework.context.event.ContextClosedEvent>