public static enum Subscribe.BatchingStrategy extends java.lang.Enum<Subscribe.BatchingStrategy>
| Enum Constant and Description |
|---|
Age
The events will be batched based on the time elapsed between the addition of the first entry and now.
|
None
No batching, the events will be dispatched one at a time.
|
SizeOrAge
The events will be dispatched if the number of events in the batch exceeds the threshold as defined by
Subscribe.batchSize() or the age as defined by
Subscribe.batchAge(). |
| Modifier and Type | Method and Description |
|---|---|
static Subscribe.BatchingStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Subscribe.BatchingStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Subscribe.BatchingStrategy Age
Subscribe.batchAge()public static final Subscribe.BatchingStrategy SizeOrAge
Subscribe.batchSize() or the age as defined by
Subscribe.batchAge().public static final Subscribe.BatchingStrategy None
public static Subscribe.BatchingStrategy[] values()
for (Subscribe.BatchingStrategy c : Subscribe.BatchingStrategy.values()) System.out.println(c);
public static Subscribe.BatchingStrategy valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null