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

org.rx.net.transport.TcpClientConfig Maven / Gradle / Ivy

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

import io.netty.handler.codec.serialization.ClassResolver;
import io.netty.handler.codec.serialization.ClassResolvers;
import io.netty.handler.codec.serialization.ObjectEncoder;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.rx.net.SocketConfig;
import org.rx.net.rpc.RpcClientConfig;

import javax.validation.constraints.NotNull;
import java.net.InetSocketAddress;

@Getter
@Setter
@ToString
public class TcpClientConfig extends SocketConfig {
    private static final long serialVersionUID = -1177044491381236637L;
    public static final ObjectEncoder DEFAULT_ENCODER = new ObjectEncoder();
    public static final ClassResolver DEFAULT_CLASS_RESOLVER = ClassResolvers.softCachingConcurrentResolver(RpcClientConfig.class.getClassLoader());

    @NotNull
    private volatile InetSocketAddress serverEndpoint;
    private volatile boolean enableReconnect;
    private int heartbeatTimeout = 60;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy