public final class TcpTransportAndNetworkConfig extends Object implements Serializable
public static TcpTransportAndNetworkConfig of(int serverPort, InetSocketAddress... endpoints)
public static TcpTransportAndNetworkConfig of(int serverPort, Collection<InetSocketAddress> endpoints)
public boolean autoReconnectedUponDroppedConnection()
public TcpTransportAndNetworkConfig autoReconnectedUponDroppedConnection(boolean autoReconnectedUponDroppedConnection)
public ThrottlingConfig throttlingConfig()
public TcpTransportAndNetworkConfig throttlingConfig(ThrottlingConfig throttlingConfig)
public long heartBeatInterval(TimeUnit unit)
public int serverPort()
public TcpTransportAndNetworkConfig serverPort(int serverPort)
public Set<InetSocketAddress> endpoints()
public TcpTransportAndNetworkConfig endpoints(Set<InetSocketAddress> endpoints)
public int tcpBufferSize()
public TcpTransportAndNetworkConfig name(String name)
name
- the name used here is reflected in the Tcp Replicator and is typically used when
debuggingpublic TcpTransportAndNetworkConfig tcpBufferSize(int tcpBufferSize)
public TcpTransportAndNetworkConfig heartBeatInterval(long heartBeatInterval, TimeUnit heartBeatIntervalUnit)
public String name()
Copyright © 2015. All rights reserved.