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

org.rx.net.rpc.RpcServerConfig Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
package org.rx.net.rpc;

import lombok.Data;
import org.rx.core.App;
import org.rx.net.MemoryMode;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
public class RpcServerConfig implements Serializable {
    public static final int MAX_OBJECT_SIZE = 1048576 * 4;
    public static final int DISABLE_VERSION = -1;
    public static final int LATEST_COMPUTE = 0;

    private static final long serialVersionUID = 8065323693541916068L;
    private boolean tryEpoll = true;
    private int listenPort;
    private int workThread;
    private MemoryMode memoryMode;
    private int connectTimeoutMillis = App.getConfig().getNetTimeoutMillis();
    private boolean enableSsl;
    private boolean enableCompress;
    private int capacity = 10000;
    private final List eventBroadcastVersions = new ArrayList<>();
    private int eventComputeVersion = LATEST_COMPUTE;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy