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

org.n3r.eql.EqlContext Maven / Gradle / Ivy

There is a newer version: 0.1.19
Show newest version
package org.n3r.eql;

import com.google.common.collect.Maps;

import java.util.Map;

public class EqlContext {
    private static ThreadLocal> threadLocalMap = ThreadLocal.withInitial(() -> Maps.newHashMap());

    public static void put(String name, Object value) {
        getMap().put(name, value);
    }

    public static Object get(String name) {
        return getMap().get(name);
    }

    public static Object remove(String name) {
        return getMap().remove(name);
    }

    public static Map getMap() {
        return threadLocalMap.get();
    }

    public static void clear() {
        getMap().clear();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy