Modifier and Type | Field and Description |
---|---|
protected Map<String,Integer> |
concurrencies |
protected int |
defaultConcurrency |
protected int |
defaultPartitions |
protected Map<String,Integer> |
partitions |
Constructor and Description |
---|
Settings(int defaultConcurrency,
int defaultPartitions)
Default concurrency and partition to use if not specified explicitly
|
Modifier and Type | Method and Description |
---|---|
int |
getConcurrency(String computationName) |
int |
getPartitions(String streamName) |
Settings |
setConcurrency(String computationName,
int concurrency)
Set the computation thread pool size.
|
Settings |
setPartitions(String streamName,
int partitions)
Set the number of partitions for a stream.
|
protected final int defaultConcurrency
protected final int defaultPartitions
protected final Map<String,Integer> concurrencies
protected final Map<String,Integer> partitions
public Settings(int defaultConcurrency, int defaultPartitions)
public Settings setConcurrency(String computationName, int concurrency)
public int getConcurrency(String computationName)
public Settings setPartitions(String streamName, int partitions)
public int getPartitions(String streamName)
Copyright © 2018 Nuxeo. All rights reserved.