org.zodiac.sdk.simplenetty.channel.ChannelOption Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zodiac-sdk-nio Show documentation
Show all versions of zodiac-sdk-nio Show documentation
Zodiac SDK NIO2(New Non-Blocking IO)
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;
}
}