public class ClientReliableTopicConfig extends Object implements NamedConfig
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() |
ClientReliableTopicConfig(ClientReliableTopicConfig reliableTopicConfig)
Create a clone of given reliable topic
|
ClientReliableTopicConfig(String name)
Creates a new ReliableTopicConfig with default settings.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
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.
|
int |
hashCode() |
ClientReliableTopicConfig |
setExecutor(Executor executor)
Sets the Executor that is going to process the event.
|
ClientReliableTopicConfig |
setName(String name)
Sets the name or name pattern for this config.
|
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()
public ClientReliableTopicConfig(String name)
public ClientReliableTopicConfig(ClientReliableTopicConfig reliableTopicConfig)
reliableTopicConfig
- topicpublic String getName()
getName
in interface NamedConfig
public ClientReliableTopicConfig setName(String name)
ClientConfig
.setName
in interface NamedConfig
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 © 2023 Hazelcast, Inc.. All rights reserved.