public interface StickyKeyConsumerSelector
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_RANGE_SIZE |
| Modifier and Type | Method and Description |
|---|---|
void |
addConsumer(Consumer consumer)
Add a new consumer
|
Map<String,List<String>> |
getConsumerKeyHashRanges()
Get key hash ranges handled by each consumer
|
void |
removeConsumer(Consumer consumer)
Remove the consumer
|
Consumer |
select(byte[] stickyKey)
Select a consumer by sticky key
|
static final int DEFAULT_RANGE_SIZE
void addConsumer(Consumer consumer) throws BrokerServiceException.ConsumerAssignException
consumer - new consumerBrokerServiceException.ConsumerAssignExceptionvoid removeConsumer(Consumer consumer)
consumer - consumer to be removedConsumer select(byte[] stickyKey)
stickyKey - sticky keyCopyright © 2017–2021 Apache Software Foundation. All rights reserved.