Class SolrAutoFlushScheduler


  • @DeclareRoles("org.imixs.ACCESSLEVEL.MANAGERACCESS")
    @RunAs("org.imixs.ACCESSLEVEL.MANAGERACCESS")
    public class SolrAutoFlushScheduler
    extends Object
    The SolrAutoFlushScheduler starts a ManagedScheduledExecutorService to flush the index events on a scheduled basis by calling the SolrUpdateService method updateIndex().

    The ManagedScheduledExecutorService can be configured with the following properties:

    • solr.flush.interval - flush interval in milliseconds (default 2sec)
    • solr.flush.disabled - if true the scheduler is disabled (default 'false')
    • solr.autoflush.initialdelay - time in milliseconds to delay the start

    Version:
    1.0
    Author:
    rsoika
    See Also:
    SolrUpdateService
    • Constructor Detail

      • SolrAutoFlushScheduler

        public SolrAutoFlushScheduler()
    • Method Detail

      • init

        @PostConstruct
        public void init()
        This method start the ManagedScheduledExecutorService to flush the index event log on a schedule base.
      • run

        public void run()
        The method delecates the event processing to the solrUpdateService