public ReliableTopicProxy(String name, NodeEngine nodeEngine, ReliableTopicService service, ReliableTopicConfig topicConfig) { super(nodeEngine, service); this.name = name; this.topicConfig = topicConfig; this.nodeEngine = nodeEngine; this.ringbuffer = nodeEngine.getHazelcastInstance().getRingbuffer(TOPIC_RB_PREFIX + name); this.executor = initExecutor(nodeEngine, topicConfig); this.thisAddress = nodeEngine.getThisAddress(); this.overloadPolicy = topicConfig.getTopicOverloadPolicy(); this.localTopicStats = service.getLocalTopicStats(name); for (ListenerConfig listenerConfig : topicConfig.getMessageListenerConfigs()) { addMessageListener(listenerConfig); } }
public ReliableTopicProxy(String name, NodeEngine nodeEngine, ReliableTopicService service, ReliableTopicConfig topicConfig) { super(nodeEngine, service); this.name = name; this.topicConfig = topicConfig; this.nodeEngine = nodeEngine; this.ringbuffer = nodeEngine.getHazelcastInstance().getRingbuffer(TOPIC_RB_PREFIX + name); this.executor = initExecutor(nodeEngine, topicConfig); this.thisAddress = nodeEngine.getThisAddress(); this.overloadPolicy = topicConfig.getTopicOverloadPolicy(); this.localTopicStats = service.getLocalTopicStats(name); for (ListenerConfig listenerConfig : topicConfig.getMessageListenerConfigs()) { addMessageListener(listenerConfig); } }