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

com.github.charlemaznable.vertx.common.ConfigableIgniteClusterManager Maven / Gradle / Ivy

There is a newer version: 2022.0.2
Show newest version
package com.github.charlemaznable.vertx.common;

import io.vertx.core.json.JsonObject;
import io.vertx.spi.cluster.ignite.IgniteClusterManager;
import io.vertx.spi.cluster.ignite.IgniteOptions;
import lombok.extern.slf4j.Slf4j;

import static org.joor.Reflect.on;

@Slf4j
public abstract class ConfigableIgniteClusterManager
        extends IgniteClusterManager implements ParamsConfigable {

    @Override
    public void applyConfigValue(String configValue) {
        try {
            on(this).set("extOptions", new IgniteOptions(new JsonObject(configValue)));
        } catch (Exception e) {
            log.error("Failed to set config", e);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy