Package org.imixs.workflow.engine.solr
Class SolrAutoFlushScheduler
- java.lang.Object
-
- org.imixs.workflow.engine.solr.SolrAutoFlushScheduler
-
@DeclareRoles("org.imixs.ACCESSLEVEL.MANAGERACCESS") @RunAs("org.imixs.ACCESSLEVEL.MANAGERACCESS") public class SolrAutoFlushScheduler extends ObjectThe SolrAutoFlushScheduler starts a ManagedScheduledExecutorService to flush the index events on a scheduled basis by calling the SolrUpdateService methodupdateIndex().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
-
-
Field Summary
Fields Modifier and Type Field Description static StringSOLR_AUTOFLUSH_DISABLEDstatic StringSOLR_AUTOFLUSH_INITIALDELAYstatic StringSOLR_AUTOFLUSH_INTERVAL
-
Constructor Summary
Constructors Constructor Description SolrAutoFlushScheduler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit()This method start the ManagedScheduledExecutorService to flush the index event log on a schedule base.voidrun()The method delecates the event processing to the solrUpdateService
-
-
-
Field Detail
-
SOLR_AUTOFLUSH_DISABLED
public static final String SOLR_AUTOFLUSH_DISABLED
- See Also:
- Constant Field Values
-
SOLR_AUTOFLUSH_INTERVAL
public static final String SOLR_AUTOFLUSH_INTERVAL
- See Also:
- Constant Field Values
-
SOLR_AUTOFLUSH_INITIALDELAY
public static final String SOLR_AUTOFLUSH_INITIALDELAY
- See Also:
- Constant Field Values
-
-