类 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
-
构造器概要
构造器构造器说明NacosGracefulShutdownDelegate(NacosAutoServiceRegistration autoServiceRegistration, NacosDiscoveryProperties nacosDiscoveryProperties) -
方法概要
修饰符和类型方法说明protected voidvoidonApplicationEvent(org.springframework.context.event.ContextClosedEvent event) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) boolean
-
构造器详细资料
-
NacosGracefulShutdownDelegate
public NacosGracefulShutdownDelegate(NacosAutoServiceRegistration autoServiceRegistration, NacosDiscoveryProperties nacosDiscoveryProperties)
-
-
方法详细资料
-
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>
-