public class ClientReliableTopicConfig extends Object
ClientReliableTopicProxy
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_READ_BATCH_SIZE
The default read batch size.
|
static TopicOverloadPolicy |
DEFAULT_TOPIC_OVERLOAD_POLICY
The default slow consumer policy.
|
Constructor and Description |
---|
ClientReliableTopicConfig(String name)
Creates a new ReliableTopicConfig with default settings.
|
Modifier and Type | Method and Description |
---|---|
Executor |
getExecutor()
Gets the Executor that is going to process the events.
|
String |
getName()
Gets the name of the reliable topic.
|
int |
getReadBatchSize()
Gets the maximum number of items to read in a batch.
|
TopicOverloadPolicy |
getTopicOverloadPolicy()
Gets the TopicOverloadPolicy for this reliable topic.
|
ClientReliableTopicConfig |
setExecutor(Executor executor)
Sets the Executor that is going to process the event.
|
ClientReliableTopicConfig |
setReadBatchSize(int readBatchSize)
Sets the read batch size.
|
ClientReliableTopicConfig |
setTopicOverloadPolicy(TopicOverloadPolicy topicOverloadPolicy)
Sets the TopicOverloadPolicy for this reliable topic.
|
String |
toString() |
public static final int DEFAULT_READ_BATCH_SIZE
public static final TopicOverloadPolicy DEFAULT_TOPIC_OVERLOAD_POLICY
public ClientReliableTopicConfig(String name)
public String getName()
public TopicOverloadPolicy getTopicOverloadPolicy()
public ClientReliableTopicConfig setTopicOverloadPolicy(TopicOverloadPolicy topicOverloadPolicy)
TopicOverloadPolicy
for more details about
this setting.topicOverloadPolicy
- the new TopicOverloadPolicy.IllegalArgumentException
- if topicOverloadPolicy is null.public Executor getExecutor()
ExecutionService.ASYNC_EXECUTOR
is used.setExecutor(Executor)
public ClientReliableTopicConfig setExecutor(Executor executor)
executor
- the Executor. if the executor is null, the ExecutionService.ASYNC_EXECUTOR
will
be used to process the event.public int getReadBatchSize()
public ClientReliableTopicConfig setReadBatchSize(int readBatchSize)
readBatchSize
- the maximum number of items to read in a batch.IllegalArgumentException
- if readBatchSize is smaller than 1.Copyright © 2018 Hazelcast, Inc.. All rights reserved.