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

org.zodiac.sdk.simplenetty.channel.ChannelOption Maven / Gradle / Ivy

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

public class ChannelOption {

    public static final ChannelOption BUFFER_SIZE = new ChannelOption<>("BUFFER_SIZE", 1024 * 1024);
    public static final ChannelOption CORE_SIZE =
        new ChannelOption<>("CORE_SIZE", Runtime.getRuntime().availableProcessors());
    String name;
    T value;

    public ChannelOption(String name, T value) {
        this.name = name;
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public T getValue() {
        return value;
    }

    public void setValue(T value) {
        this.value = value;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy