T
- type task typepublic class BucketedExecutorSettings<T extends Serializable> extends Object
constructing
BucketedExecutor
instances.Modifier and Type | Class and Description |
---|---|
static class |
BucketedExecutorSettings.Builder<T extends Serializable>
Builder for
BucketedExecutorSettings |
Modifier and Type | Method and Description |
---|---|
int |
getBatchSize() |
Function<T,String> |
getBucketIdExtractor() |
int |
getMaxAttempts() |
int |
getMaxConcurrency() |
ConcurrencyPolicy |
getMaxConcurrencyPolicy() |
BucketProcessor<T> |
getProcessor() |
public int getBatchSize()
BucketProcessor
run. The
number of items that are passed to a BucketProcessor
is guaranteed to be <= the configured
batch size.@Nonnull public Function<T,String> getBucketIdExtractor()
public int getMaxAttempts()
public int getMaxConcurrency()
@Nonnull public ConcurrencyPolicy getMaxConcurrencyPolicy()
ConcurrencyPolicy.PER_CLUSTER
, the maximum concurrency
is translated into a per-node maximum by dividing the maximum
by the number of nodes in the cluster (rounded up).@Nonnull public BucketProcessor<T> getProcessor()
Copyright © 2022 Atlassian. All rights reserved.