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

org.zodiac.sdk.simplenetty.concurrent.FutureHolder Maven / Gradle / Ivy

There is a newer version: 1.6.8
Show newest version
package org.zodiac.sdk.simplenetty.concurrent;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import org.zodiac.sdk.simplenetty.core.EventExecutor;

public class FutureHolder {

    private static Map map = new ConcurrentHashMap<>();

    public static void put(EventExecutor eventExecutor, AbstractChannelFuture future) {
        map.put(eventExecutor, future);
    }

    public static AbstractChannelFuture get(EventExecutor eventExecutor) {
        return map.get(eventExecutor);
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy