Class IndexEvent

  • All Implemented Interfaces:
    Serializable

    public class IndexEvent
    extends org.springframework.context.ApplicationEvent
    A class of event that notifies the listener of a significant event relating to a Lucene index. Useful for Monitoring purposes.
    Author:
    dward
    See Also:
    Serialized Form
    • Constructor Detail

      • IndexEvent

        public IndexEvent​(IndexMonitor source,
                          String description,
                          int count)
        The Constructor.
        Parameters:
        source - the source index monitor
        description - the event description
        count - its instance count
    • Method Detail

      • getIndexMonitor

        public IndexMonitor getIndexMonitor()
        Gets the source index monitor.
        Returns:
        the index monitor
      • getDescription

        public String getDescription()
        Gets the event description.
        Returns:
        the description
      • getCount

        public int getCount()
        Gets the event instance count.
        Returns:
        the count