类 ServiceNoticeControl
java.lang.Object
top.codef.microservice.control.ServiceNoticeControl
- 所有已实现的接口:
org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.SmartInitializingSingleton
public class ServiceNoticeControl
extends Object
implements org.springframework.beans.factory.SmartInitializingSingleton, org.springframework.beans.factory.DisposableBean
-
构造器概要
构造器构造器说明ServiceNoticeControl(ServiceMonitorProperties serviceMonitorProperties, PrometheusProperties promethreusNoticeProperties, org.springframework.scheduling.TaskScheduler taskScheduler, ServiceNoticeRepository serviceNoticeRepository, NoticeTextResolverProvider noticeTextResolverProvider, NoticeComponentFactory noticeComponentFactory) -
方法概要
修饰符和类型方法说明voidvoiddestroy()org.springframework.scheduling.TaskSchedulervoidsetResult(ScheduledFuture<?> result)
-
构造器详细资料
-
ServiceNoticeControl
public ServiceNoticeControl(ServiceMonitorProperties serviceMonitorProperties, PrometheusProperties promethreusNoticeProperties, org.springframework.scheduling.TaskScheduler taskScheduler, ServiceNoticeRepository serviceNoticeRepository, NoticeTextResolverProvider noticeTextResolverProvider, NoticeComponentFactory noticeComponentFactory) - 参数:
serviceMonitorProperties-promethreusNoticeProperties-taskScheduler-serviceNoticeRepository-noticeTextResolverProvider-noticeComponentFactory-
-
-
方法详细资料
-
getServiceMonitorProperties
-
getResult
- 返回:
- the result
-
setResult
- 参数:
result- the result to set
-
getTaskScheduler
public org.springframework.scheduling.TaskScheduler getTaskScheduler()- 返回:
- the taskScheduler
-
destroy
- 指定者:
destroy在接口中org.springframework.beans.factory.DisposableBean- 抛出:
Exception
-
afterSingletonsInstantiated
public void afterSingletonsInstantiated()- 指定者:
afterSingletonsInstantiated在接口中org.springframework.beans.factory.SmartInitializingSingleton
-