public class StateMachineHandlerApplicationListener
extends java.lang.Object
implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
ApplicationListener which hooks to ContextRefreshedEvent
and tracks when was a last time context was refreshed.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BEAN_NAME |
| Constructor and Description |
|---|
StateMachineHandlerApplicationListener() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
getLastRefreshTime()
Gets the last refresh time.
|
void |
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) |
public static final java.lang.String BEAN_NAME
public StateMachineHandlerApplicationListener()
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>public java.lang.Long getLastRefreshTime()
NULL if not yet refreshed.