Class IndexerProperties
java.lang.Object
com.broadleafcommerce.search.index.autoconfigure.IndexerProperties
Properties used for indexer configuration.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
The service client to use when interacting with the search service. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
long
This is the time that the main control thread will pause on indexing process completion to allow other threads to finish what they are doing or catch up.long
Time in millis between 2 threads are started.getQueue()
int
The number of worker threads which should be started on a reindex process.int
hashCode()
void
setCompletionPauseTime
(long completionPauseTime) This is the time that the main control thread will pause on indexing process completion to allow other threads to finish what they are doing or catch up.void
setPauseBetweenThreadsStart
(long pauseBetweenThreadsStart) Time in millis between 2 threads are started.void
void
void
void
setWorkerThreads
(int workerThreads) The number of worker threads which should be started on a reindex process.toString()
-
Constructor Details
-
IndexerProperties
public IndexerProperties()
-
-
Method Details
-
getQueue
-
getSearch
-
getTenant
-
getWorkerThreads
public int getWorkerThreads()The number of worker threads which should be started on a reindex process.- Returns:
- number of worker threads on a reindex process
-
getPauseBetweenThreadsStart
public long getPauseBetweenThreadsStart()Time in millis between 2 threads are started. Depending on how manyworkerThreads
delay between the first and the last thread can be pauseBetweenThreadsStart * workerThreads;- Returns:
- pause in millis between start of two threads
-
getCompletionPauseTime
public long getCompletionPauseTime()This is the time that the main control thread will pause on indexing process completion to allow other threads to finish what they are doing or catch up.- Returns:
- time to wait on indexing completion for other threads finishing
-
setQueue
-
setSearch
-
setTenant
-
setWorkerThreads
public void setWorkerThreads(int workerThreads) The number of worker threads which should be started on a reindex process.- Parameters:
workerThreads
- number of worker threads on a reindex process
-
setPauseBetweenThreadsStart
public void setPauseBetweenThreadsStart(long pauseBetweenThreadsStart) Time in millis between 2 threads are started. Depending on how manyworkerThreads
delay between the first and the last thread can be pauseBetweenThreadsStart * workerThreads;- Parameters:
pauseBetweenThreadsStart
- number of worker threads on a reindex process
-
setCompletionPauseTime
public void setCompletionPauseTime(long completionPauseTime) This is the time that the main control thread will pause on indexing process completion to allow other threads to finish what they are doing or catch up.- Parameters:
completionPauseTime
- time to wait on indexing completion for other threads finishing
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-