Class IndexerProperties.QueueProperties
java.lang.Object
com.broadleafcommerce.search.index.autoconfigure.IndexerProperties.QueueProperties
- Enclosing class:
- IndexerProperties
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanbooleanintDefines the number of times that we'll try to put something from a bounded BlockingQueue with the given wait time before giving up, for example when nothing is reading from the Queue.longTime in milliseconds to wait put something on a bounded BlockingQueue.intThe maximum allowed size of the queue.intDefines the number of times that we'll try to retrieve something from a queue with the given wait time before giving up.longTime in milliseconds to wait for something to arrive in the Queue.inthashCode()voidsetLoadMaxTries(int loadMaxTries) Defines the number of times that we'll try to put something from a bounded BlockingQueue with the given wait time before giving up, for example when nothing is reading from the Queue.voidsetLoadWaitTime(long loadWaitTime) Time in milliseconds to wait put something on a bounded BlockingQueue.voidsetMaxQueueSize(int maxQueueSize) The maximum allowed size of the queue.voidsetReadMaxTries(int readMaxTries) Defines the number of times that we'll try to retrieve something from a queue with the given wait time before giving up.voidsetReadWaitTime(long readWaitTime) Time in milliseconds to wait for something to arrive in the Queue.toString()
- 
Constructor Details- 
QueuePropertiespublic QueueProperties()
 
- 
- 
Method Details- 
getLoadWaitTimepublic long getLoadWaitTime()Time in milliseconds to wait put something on a bounded BlockingQueue. Keep this rather small. We want to wait and try again to ensure that we don't block indefinitely and to check that there was not a failure while we began waiting.- Returns:
- time to wait while putting onto the queue
 
- 
getLoadMaxTriespublic int getLoadMaxTries()Defines the number of times that we'll try to put something from a bounded BlockingQueue with the given wait time before giving up, for example when nothing is reading from the Queue.- Returns:
- number of times to try putting an object onto the queue
 
- 
getMaxQueueSizepublic int getMaxQueueSize()The maximum allowed size of the queue.- Returns:
- maximum allowed size of the queue
 
- 
getReadWaitTimepublic long getReadWaitTime()Time in milliseconds to wait for something to arrive in the Queue. Keep this rather small.- Returns:
- time to wait for something to arrive in the queue
 
- 
getReadMaxTriespublic int getReadMaxTries()Defines the number of times that we'll try to retrieve something from a queue with the given wait time before giving up. Either nothing is putting data on the queue, or the cluster size is too big and we're just not receiving data because other threads are consuming the data fast enough that we never receive any.- Returns:
- number of times to try to retrieve something from the queue
 
- 
setLoadWaitTimepublic void setLoadWaitTime(long loadWaitTime) Time in milliseconds to wait put something on a bounded BlockingQueue. Keep this rather small. We want to wait and try again to ensure that we don't block indefinitely and to check that there was not a failure while we began waiting.- Parameters:
- loadWaitTime- time to wait while putting onto the queue
 
- 
setLoadMaxTriespublic void setLoadMaxTries(int loadMaxTries) Defines the number of times that we'll try to put something from a bounded BlockingQueue with the given wait time before giving up, for example when nothing is reading from the Queue.- Parameters:
- loadMaxTries- number of times to try putting an object onto the queue
 
- 
setMaxQueueSizepublic void setMaxQueueSize(int maxQueueSize) The maximum allowed size of the queue.- Parameters:
- maxQueueSize- maximum allowed size of the queue
 
- 
setReadWaitTimepublic void setReadWaitTime(long readWaitTime) Time in milliseconds to wait for something to arrive in the Queue. Keep this rather small.- Parameters:
- readWaitTime- time to wait for something to arrive in the queue
 
- 
setReadMaxTriespublic void setReadMaxTries(int readMaxTries) Defines the number of times that we'll try to retrieve something from a queue with the given wait time before giving up. Either nothing is putting data on the queue, or the cluster size is too big and we're just not receiving data because other threads are consuming the data fast enough that we never receive any.- Parameters:
- readMaxTries- number of times to try to retrieve something from the queue
 
- 
equals
- 
canEqual
- 
hashCodepublic int hashCode()
- 
toString
 
-