|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<Subscribe.BatchingStrategy>
com.netflix.eventbus.spi.Subscribe.BatchingStrategy
public static enum Subscribe.BatchingStrategy
Batching strategy for event batches.
| Enum Constant Summary | |
|---|---|
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(). |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
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
| Method Detail |
|---|
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 name
java.lang.NullPointerException - if the argument is null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||