@InterfaceAudience.Public @InterfaceStability.Stable public abstract class KeySharedPolicy extends Object
Modifier and Type | Class and Description |
---|---|
static class |
KeySharedPolicy.KeySharedPolicyAutoSplit
Auto split hash range key shared policy.
|
static class |
KeySharedPolicy.KeySharedPolicySticky
Sticky attach topic with fixed hash range.
|
Modifier and Type | Field and Description |
---|---|
protected boolean |
allowOutOfOrderDelivery |
static int |
DEFAULT_HASH_RANGE_SIZE |
protected KeySharedMode |
keySharedMode |
Constructor and Description |
---|
KeySharedPolicy() |
Modifier and Type | Method and Description |
---|---|
static KeySharedPolicy.KeySharedPolicyAutoSplit |
autoSplitHashRange() |
int |
getHashRangeTotal() |
KeySharedMode |
getKeySharedMode() |
boolean |
isAllowOutOfOrderDelivery() |
KeySharedPolicy |
setAllowOutOfOrderDelivery(boolean allowOutOfOrderDelivery)
If enabled, it will relax the ordering requirement, allowing the broker to send out-of-order messages in case of
failures.
|
static KeySharedPolicy.KeySharedPolicySticky |
stickyHashRange() |
abstract void |
validate() |
protected KeySharedMode keySharedMode
protected boolean allowOutOfOrderDelivery
public static final int DEFAULT_HASH_RANGE_SIZE
public static KeySharedPolicy.KeySharedPolicyAutoSplit autoSplitHashRange()
public static KeySharedPolicy.KeySharedPolicySticky stickyHashRange()
public abstract void validate()
public KeySharedPolicy setAllowOutOfOrderDelivery(boolean allowOutOfOrderDelivery)
In this case, a single consumer will still receive all the keys, but they may be coming in different orders.
allowOutOfOrderDelivery
- whether to allow for out of order deliverypublic boolean isAllowOutOfOrderDelivery()
public KeySharedMode getKeySharedMode()
public int getHashRangeTotal()
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.