Ejemplo n.º 1
0
 @Start
 protected void start() {
   clusterRegistry.addListener(registryListener);
   Set<Class<?>> keys = clusterRegistry.keys();
   Class<?>[] array = keys.toArray(new Class<?>[keys.size()]);
   // Important to enable them all in a single call, much more efficient:
   enableClasses(array);
   stopping.set(false);
 }