org.rx.net.MemoryMode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rxlib Show documentation
Show all versions of rxlib Show documentation
A set of utilities for Java
package org.rx.net;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
@RequiredArgsConstructor
@Getter
public enum MemoryMode {
Low(128, 16 * 1024, 16 * 1024, 64 * 1024, 128 * 1024),
Medium(512, 64 * 1024, 64 * 1024, 512 * 1024, 1024 * 1024),
High(1024, 128 * 1024, 128 * 1024, 8 * 1024 * 1024, 16 * 1024 * 1024);
private final int backlog;
private final int sendBuf, receiveBuf;
private final int lowWaterMark, highWaterMark;
}