All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vertx.tp.plugin.elasticsearch.ZERO Maven / Gradle / Ivy

package io.vertx.tp.plugin.elasticsearch;

import io.vertx.core.json.JsonObject;
import io.vertx.up.eon.em.ChangeFlag;

import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.function.BiFunction;

interface Pool {
    ConcurrentMap HELPERS
            = new ConcurrentHashMap<>();

    ConcurrentMap> ES_CACHE =
            new ConcurrentHashMap>() {
                {
                    this.put(ChangeFlag.ADD, new ConcurrentHashMap<>());
                    this.put(ChangeFlag.UPDATE, new ConcurrentHashMap<>());
                    this.put(ChangeFlag.DELETE, new ConcurrentHashMap<>());
                }
            };

    ConcurrentMap> ES_FUN =
            new ConcurrentHashMap>() {
                {
                    this.put(ChangeFlag.ADD, EsAmbitAdd::new);
                    this.put(ChangeFlag.UPDATE, EsAmbitUpdate::new);
                    this.put(ChangeFlag.DELETE, EsAmbitDelete::new);
                }
            };
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy