use of com.hazelcast.internal.config.ConfigSections.LISTENERS in project hazelcast by hazelcast.
the class MemberDomConfigProcessor method handleReliableTopicNode.
void handleReliableTopicNode(Node node, final ReliableTopicConfig topicConfig) {
for (Node n : childElements(node)) {
String nodeName = cleanNodeName(n);
if (matches("read-batch-size", nodeName)) {
String batchSize = getTextContent(n);
topicConfig.setReadBatchSize(getIntegerValue("read-batch-size", batchSize));
} else if (matches("statistics-enabled", nodeName)) {
topicConfig.setStatisticsEnabled(getBooleanValue(getTextContent(n)));
} else if (matches("topic-overload-policy", nodeName)) {
TopicOverloadPolicy topicOverloadPolicy = TopicOverloadPolicy.valueOf(upperCaseInternal(getTextContent(n)));
topicConfig.setTopicOverloadPolicy(topicOverloadPolicy);
} else if (matches("message-listeners", nodeName)) {
handleMessageListeners(n, listenerConfig -> {
topicConfig.addMessageListenerConfig(listenerConfig);
return null;
});
}
}
config.addReliableTopicConfig(topicConfig);
}
Aggregations