public class NamedConsumerStrategy
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static NamedConsumerStrategy |
DISPATCH_TO_SINGLE
Distributes events to a single client until the buffer size is reached.
|
static NamedConsumerStrategy |
PINNED
For use with an indexing projection such as the system $by_category projection.
|
static NamedConsumerStrategy |
PINNED_BY_CORRELATION
This is similar to the Pinned strategy, but instead of using the source stream id to bucket the messages, it distributes the events based on the event's correlationId.
|
static NamedConsumerStrategy |
ROUND_ROBIN
Distributes events to all client evenly.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDispatchToSingle()
Checks if it's a DispatchToSingle strategy.
|
boolean |
isNamed(java.lang.String named)
Checks if the strategy's name matches the string passed as a parameter.
|
boolean |
isPinned()
Checks if it's a Pinned strategy.
|
boolean |
isPinnedByCorrelation()
Checks if it's a PinnedByCorrelation strategy.
|
boolean |
isRoundRobin()
Checks if it's a RoundRobin strategy.
|
java.lang.String |
toString() |
public static final NamedConsumerStrategy DISPATCH_TO_SINGLE
public static final NamedConsumerStrategy ROUND_ROBIN
public static final NamedConsumerStrategy PINNED
public static final NamedConsumerStrategy PINNED_BY_CORRELATION
public boolean isDispatchToSingle()
public boolean isRoundRobin()
public boolean isPinned()
public boolean isPinnedByCorrelation()
public boolean isNamed(java.lang.String named)
public java.lang.String toString()
toString in class java.lang.Object