Example #1
0
 public ProxyManager(HazelcastClientInstanceImpl client) {
   this.client = client;
   final List<ListenerConfig> listenerConfigs = client.getClientConfig().getListenerConfigs();
   if (listenerConfigs != null && !listenerConfigs.isEmpty()) {
     for (ListenerConfig listenerConfig : listenerConfigs) {
       if (listenerConfig.getImplementation() instanceof DistributedObjectListener) {
         addDistributedObjectListener(
             (DistributedObjectListener) listenerConfig.getImplementation());
       }
     }
   }
 }
 @Override
 public String addDistributedObjectListener(DistributedObjectListener distributedObjectListener) {
   return proxyManager.addDistributedObjectListener(distributedObjectListener);
 }