protected Set<Deployment> takeDeploymentSnapshot(int pos) { Set<Deployment> snapshot = new ConcurrentHashSet<>(); VertxInternal v = (VertxInternal) vertices[pos]; for (String depID : v.deploymentIDs()) { snapshot.add(v.getDeployment(depID)); } return snapshot; }