Interface PollingMonitor
-
- All Superinterfaces:
org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>,java.util.EventListener
public interface PollingMonitor extends org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>An interface for monitors which rely on polling.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.LonggetLastPoll()java.lang.StringgetName()intgetPollInterval()booleanisInService()voidonApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
-
-
-
Method Detail
-
onApplicationEvent
void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
-
getName
java.lang.String getName()
-
isInService
boolean isInService()
-
getLastPoll
java.lang.Long getLastPoll()
-
getPollInterval
int getPollInterval()
-
-