@Retention(value=RUNTIME) @Target(value=TYPE) @Repeatable(value=GroupContainer.class) public @interface Group
Configures which classes go to the same thread pool. It defines the number of
threads according to a linear function parameterized by the number of created
objects. max()
defines how many threads could be at most.
Example:
@Group(contains = {A.class,B.class}, max = 10, constant = 5, gradient = 0.1)
Modifier and Type | Required Element and Description |
---|---|
java.lang.Class<? extends ModelClass>[] |
contains |
public abstract java.lang.Class<? extends ModelClass>[] contains