Search in sources :

Example 1 with ConcurrentHashSet

use of io.vertx.core.impl.ConcurrentHashSet in project vert.x by eclipse.

the class ComplexHATest method takeDeploymentSnapshot.

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;
}
Also used : VertxInternal(io.vertx.core.impl.VertxInternal) ConcurrentHashSet(io.vertx.core.impl.ConcurrentHashSet) Deployment(io.vertx.core.impl.Deployment)

Aggregations

ConcurrentHashSet (io.vertx.core.impl.ConcurrentHashSet)1 Deployment (io.vertx.core.impl.Deployment)1 VertxInternal (io.vertx.core.impl.VertxInternal)1