本文整理了Java中com.hazelcast.config.Config.getListenerConfigs()
方法的一些代码示例,展示了Config.getListenerConfigs()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Config.getListenerConfigs()
方法的具体详情如下:
包路径:com.hazelcast.config.Config
类名称:Config
方法名:getListenerConfigs
[英]Returns the list of EventListener configurations. This includes listeners for events related to this instance/member or the cluster, such as partition, migration, cluster version listeners, etc. but not listeners on specific distributed data structures.
[中]返回EventListener配置的列表。这包括与此实例/成员或集群相关的事件的侦听器,如分区、迁移、集群版本侦听器等,但不包括特定分布式数据结构上的侦听器。
代码示例来源:origin: hazelcast/hazelcast-jet
@Override
public List<ListenerConfig> getListenerConfigs() {
return staticConfig.getListenerConfigs();
}
代码示例来源:origin: com.hazelcast/hazelcast-all
@Override
public List<ListenerConfig> getListenerConfigs() {
return staticConfig.getListenerConfigs();
}
代码示例来源:origin: hazelcast/hazelcast-jet
/**
* Adds a configuration for an {@link EventListener}. This includes
* listeners for events related to this instance/member or the cluster,
* such as partition, migration, cluster version listeners, etc. but not
* listeners on specific distributed data structures.
*
* @param listenerConfig the listener configuration
* @return this config instance
*/
public Config addListenerConfig(ListenerConfig listenerConfig) {
getListenerConfigs().add(listenerConfig);
return this;
}
代码示例来源:origin: com.hazelcast/hazelcast-all
/**
* Adds a configuration for an {@link EventListener}. This includes
* listeners for events related to this instance/member or the cluster,
* such as partition, migration, cluster version listeners, etc. but not
* listeners on specific distributed data structures.
*
* @param listenerConfig the listener configuration
* @return this config instance
*/
public Config addListenerConfig(ListenerConfig listenerConfig) {
getListenerConfigs().add(listenerConfig);
return this;
}
代码示例来源:origin: hazelcast/hazelcast-jet
private static void listenerXmlGenerator(XmlGenerator gen, Config config) {
if (config.getListenerConfigs().isEmpty()) {
return;
}
gen.open("listeners");
for (ListenerConfig lc : config.getListenerConfigs()) {
gen.node("listener", classNameOrImplClass(lc.getClassName(), lc.getImplementation()));
}
gen.close();
}
代码示例来源:origin: com.hazelcast/hazelcast-all
private static void listenerXmlGenerator(XmlGenerator gen, Config config) {
if (config.getListenerConfigs().isEmpty()) {
return;
}
gen.open("listeners");
for (ListenerConfig lc : config.getListenerConfigs()) {
gen.node("listener", classNameOrImplClass(lc.getClassName(), lc.getImplementation()));
}
gen.close();
}
代码示例来源:origin: hazelcast/hazelcast-jet
@SuppressWarnings({"checkstyle:npathcomplexity", "checkstyle:cyclomaticcomplexity"})
private void initializeListeners(Config config) {
for (final ListenerConfig listenerCfg : config.getListenerConfigs()) {
Object listener = listenerCfg.getImplementation();
if (listener == null) {
代码示例来源:origin: com.hazelcast/hazelcast-all
@SuppressWarnings({"checkstyle:npathcomplexity", "checkstyle:cyclomaticcomplexity"})
private void initializeListeners(Config config) {
for (final ListenerConfig listenerCfg : config.getListenerConfigs()) {
Object listener = listenerCfg.getImplementation();
if (listener == null) {
内容来源于网络,如有侵权,请联系作者删除!