Class StateMachineHandlerApplicationListener

java.lang.Object
org.springframework.statemachine.config.configuration.StateMachineHandlerApplicationListener
All Implemented Interfaces:
EventListener, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>

public class StateMachineHandlerApplicationListener extends Object implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
Spring ApplicationListener which hooks to ContextRefreshedEvent and tracks when was a last time context was refreshed.
Author:
Janne Valkealahti
  • Field Details

  • Constructor Details

    • StateMachineHandlerApplicationListener

      public StateMachineHandlerApplicationListener()
  • Method Details

    • onApplicationEvent

      public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
    • getLastRefreshTime

      public Long getLastRefreshTime()
      Gets the last refresh time.
      Returns:
      the last refresh time or NULL if not yet refreshed.