java.lang.Object |
↳ |
com.atlassian.bitbucket.concurrent.BucketedExecutorSettings.Builder<T extends java.io.Serializable> |
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public Constructors
public
Builder
(Function<T, String> bucketIdExtractor, BucketProcessor<T> processor)
Parameters
bucketIdExtractor
| the function used to group items in buckets |
processor
| the processor responsible for processing buckets of tasks
|
Public Methods
public
Builder<T>
batchSize
(int value)
Parameters
value
| the number of items from a bucket that should be processed in a single BucketProcessor
run. The number of items that are passed to a BucketProcessor is guaranteed to be <=
the configured batch size. |
public
Builder<T>
maxAttempts
(int value)
Parameters
value
| the maximum number of times processing of a bucket should be attempted |
Parameters
value
| the maximum number of different buckets that can be concurrently processed. In a clustered
instance, this maximum is translated into a per-node maximum by dividing the maximum by the
number of nodes in the cluster (rounded up). |