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

io.vertx.up.verticle.ZeroAtomic Maven / Gradle / Ivy

There is a newer version: 0.9.0
Show newest version
package io.vertx.up.verticle;

import io.vertx.core.ServidorOptions;
import io.vertx.core.http.HttpServerOptions;
import io.vertx.up.runtime.ZeroGrid;

import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.atomic.AtomicInteger;

public interface ZeroAtomic {
    /**
     * Rpc constant
     */
    ConcurrentMap RPC_OPTS =
            ZeroGrid.getRpcOptions();
    ConcurrentMap
            RPC_START_LOGS = new ConcurrentHashMap() {
        {
            RPC_OPTS.forEach((port, option) -> this.put(port, new AtomicInteger(0)));
        }
    };
    /**
     * Http constants
     */
    ConcurrentMap
            HTTP_OPTS = ZeroGrid.getServerOptions();
    ConcurrentMap
            HTTP_START_LOGS = new ConcurrentHashMap() {
        {
            HTTP_OPTS.forEach((port, option) -> this.put(port, new AtomicInteger(0)));
        }
    };
    /**
     * Rx constants
     */
    ConcurrentMap
            RX_OPTS = ZeroGrid.getRxOptions();
    ConcurrentMap
            RX_START_LOGS = new ConcurrentHashMap() {
        {
            RX_OPTS.forEach((port, option) -> this.put(port, new AtomicInteger(0)));
        }
    };
    /**
     * Socket constants
     */
    ConcurrentMap
            SOCK_OPTS = ZeroGrid.getSockOptions();
    /**
     * Api Gateay
     */
    ConcurrentMap API_OPTS =
            new ConcurrentHashMap<>();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy