|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AsyncConfig
| Method Summary | |
|---|---|
int |
getBatchSize()
The number of items to include in each batch when batching is enabled. |
long |
getMaxAllowedFallBehind()
The maximum amount of time that a queue is allowed to fall behind on the work that it's processing. |
int |
getMaxQueueSize()
The maximum size of items the Async coordinator can hold. |
int |
getRateLimit()
Sets the maximum number of operations to allow per second when isBatchingEnabled() is enabled. |
long |
getRetryAttemptDelay()
Retrieves the number of milliseconds to wait before retrying a failed operation. |
int |
getRetryAttempts()
Retrieves the number of times the processing of an item is retried. |
long |
getWorkDelay()
Returns the minimum amount of time to wait between individual work cycles. |
boolean |
isBatchingEnabled()
Indicates whether to batch items. |
boolean |
isSynchronousWrite()
Perform all writes to the Terracotta backend in a synchronous fashion, hence increasing reliability but decreasing performance. |
| Method Detail |
|---|
long getWorkDelay()
long getMaxAllowedFallBehind()
int getBatchSize()
boolean isBatchingEnabled()
true, ItemProcessor.process(java.util.Collection) will
be called rather than ItemProcessor#process(Object) being called for individual item. Resources such as
databases can perform more efficiently if updates are batched, thus reducing load.
true if items should be batched; false otherwiseboolean isSynchronousWrite()
true to enable synchronous writes; or false to perform the write asynchronouslyint getRetryAttempts()
long getRetryAttemptDelay()
int getRateLimit()
isBatchingEnabled() is enabled.
int getMaxQueueSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||