public class TcpCommunicationConfiguration extends Object implements Serializable
TcpCommunicationSpi
segregation.Modifier and Type | Field and Description |
---|---|
static long |
DFLT_SELECTOR_SPINS |
static String |
IGNITE_SELECTOR_SPINS |
Constructor and Description |
---|
TcpCommunicationConfiguration() |
Modifier and Type | Method and Description |
---|---|
int |
ackSendThreshold() |
void |
ackSendThreshold(int ackSndThreshold) |
AddressResolver |
addrRslvr()
Address resolver.
|
void |
addrRslvr(AddressResolver rslvr) |
int |
boundTcpPort() |
void |
boundTcpPort(int boundTcpPort) |
int |
boundTcpShmemPort() |
void |
boundTcpShmemPort(int boundTcpShmemPort) |
ConnectionRequestor |
connectionRequestor() |
void |
connectionRequestor(ConnectionRequestor requestor) |
int |
connectionsPerNode() |
void |
connectionsPerNode(int connectionsPerNode) |
long |
connectionTimeout() |
void |
connectionTimeout(long connTimeout) |
boolean |
directBuffer() |
void |
directBuffer(boolean directBuf) |
boolean |
directSendBuffer() |
void |
directSendBuffer(boolean directSndBuf) |
long |
failureDetectionTimeout()
Returns failure detection timeout used by
TcpDiscoverySpi and TcpCommunicationSpi . |
void |
failureDetectionTimeout(long failureDetectionTimeout) |
boolean |
failureDetectionTimeoutEnabled() |
void |
failureDetectionTimeoutEnabled(boolean failureDetectionTimeoutEnabled) |
boolean |
filterReachableAddresses() |
void |
filterReachableAddresses(boolean filterReachableAddrs) |
boolean |
forceClientToSrvConnections() |
void |
forceClientToSrvConnections(boolean forceClientToSrvConnections)
Applicable for clients only.
|
long |
idleConnectionTimeout() |
void |
idleConnectionTimeout(long idleConnTimeout) |
String |
localAddress() |
void |
localAddress(String locAddr) |
InetAddress |
localHost() |
void |
localHost(InetAddress locHost) |
int |
localPort() |
void |
localPort(int locPort) |
int |
localPortRange() |
void |
localPortRange(int locPortRange) |
long |
maxConnectionTimeout() |
void |
maxConnectionTimeout(long maxConnTimeout) |
int |
messageQueueLimit() |
void |
messageQueueLimit(int msgQueueLimit) |
int |
reconCount() |
void |
reconCount(int reconCnt) |
int |
selectorsCount() |
void |
selectorsCount(int selectorsCnt) |
long |
selectorSpins() |
void |
selectorSpins(long selectorSpins) |
int |
shmemPort() |
void |
shmemPort(int shmemPort) |
int |
slowClientQueueLimit() |
void |
slowClientQueueLimit(int slowClientQueueLimit) |
int |
socketReceiveBuffer() |
void |
socketReceiveBuffer(int sockRcvBuf) |
int |
socketSendBuffer() |
void |
socketSendBuffer(int sockSndBuf) |
long |
socketWriteTimeout() |
void |
socketWriteTimeout(long sockWriteTimeout) |
boolean |
tcpNoDelay() |
void |
tcpNoDelay(boolean tcpNoDelay) |
int |
unackedMsgsBufferSize() |
void |
unackedMsgsBufferSize(int unackedMsgsBufSize) |
boolean |
usePairedConnections() |
void |
usePairedConnections(boolean usePairedConnections) |
public static final long DFLT_SELECTOR_SPINS
IGNITE_SELECTOR_SPINS
,
Constant Field Values@SystemProperty(value="Defines how many non-blocking selector.selectNow() should be made before falling into selector.select(long) in NIO server. Can be set to Long.MAX_VALUE so selector threads will never block", type=java.lang.Long.class, defaults="0") public static final String IGNITE_SELECTOR_SPINS
public AddressResolver addrRslvr()
public void addrRslvr(AddressResolver rslvr)
rslvr
- Resolver.public String localAddress()
public void localAddress(String locAddr)
locAddr
- New local IP address.public int localPort()
public void localPort(int locPort)
locPort
- New local port which node uses.public int localPortRange()
public void localPortRange(int locPortRange)
locPortRange
- New local port range.public int shmemPort()
public void shmemPort(int shmemPort)
shmemPort
- New local port which node uses to accept shared memory connections.public boolean directBuffer()
public void directBuffer(boolean directBuf)
directBuf
- New allocate direct buffer or heap buffer.public boolean directSendBuffer()
public void directSendBuffer(boolean directSndBuf)
directSndBuf
- New allocate direct buffer or heap buffer.public long idleConnectionTimeout()
public void idleConnectionTimeout(long idleConnTimeout)
idleConnTimeout
- New idle connection timeout.public long connectionTimeout()
public void connectionTimeout(long connTimeout)
connTimeout
- New connect timeout.public long maxConnectionTimeout()
public void maxConnectionTimeout(long maxConnTimeout)
maxConnTimeout
- New maximum connect timeout.public int reconCount()
public void reconCount(int reconCnt)
reconCnt
- New reconnect attempts count.public int socketSendBuffer()
public void socketSendBuffer(int sockSndBuf)
sockSndBuf
- New socket send buffer.public int socketReceiveBuffer()
public void socketReceiveBuffer(int sockRcvBuf)
sockRcvBuf
- New socket receive buffer.public int messageQueueLimit()
public void messageQueueLimit(int msgQueueLimit)
msgQueueLimit
- New message queue limit.public boolean usePairedConnections()
public void usePairedConnections(boolean usePairedConnections)
usePairedConnections
- New use paired connections.public int connectionsPerNode()
public void connectionsPerNode(int connectionsPerNode)
connectionsPerNode
- New connections per node.public boolean tcpNoDelay()
public void tcpNoDelay(boolean tcpNoDelay)
tcpNoDelay
- New option value for created sockets.public boolean filterReachableAddresses()
public void filterReachableAddresses(boolean filterReachableAddrs)
filterReachableAddrs
- New option value for created sockets.public int ackSendThreshold()
public void ackSendThreshold(int ackSndThreshold)
ackSndThreshold
- New number of received messages after which acknowledgment is sent.public int unackedMsgsBufferSize()
public void unackedMsgsBufferSize(int unackedMsgsBufSize)
unackedMsgsBufSize
- New maximum number of unacknowledged messages.public long socketWriteTimeout()
public void socketWriteTimeout(long sockWriteTimeout)
sockWriteTimeout
- New socket write timeout.public int boundTcpPort()
public void boundTcpPort(int boundTcpPort)
boundTcpPort
- New bound port.public int boundTcpShmemPort()
public void boundTcpShmemPort(int boundTcpShmemPort)
boundTcpShmemPort
- New bound port for shared memory server.public int selectorsCount()
public void selectorsCount(int selectorsCnt)
selectorsCnt
- New count of selectors to use in TCP server.public InetAddress localHost()
public void localHost(InetAddress locHost)
locHost
- New complex variable that represents this node IP address.public long selectorSpins()
public void selectorSpins(long selectorSpins)
selectorSpins
- New defines how many non-blocking should be made before falling into in NIO server. Long
value. Default is . Can be set to so selector threads will never block.public int slowClientQueueLimit()
public void slowClientQueueLimit(int slowClientQueueLimit)
slowClientQueueLimit
- New slow client queue limit.public boolean failureDetectionTimeoutEnabled()
public void failureDetectionTimeoutEnabled(boolean failureDetectionTimeoutEnabled)
failureDetectionTimeoutEnabled
- New failure detection timeout usage switch.public long failureDetectionTimeout()
TcpDiscoverySpi
and TcpCommunicationSpi
.
Default is IgniteConfiguration.DFLT_FAILURE_DETECTION_TIMEOUT
.
IgniteConfiguration.setFailureDetectionTimeout(long)
public void failureDetectionTimeout(long failureDetectionTimeout)
failureDetectionTimeout
- New failure detection timeout. Initialized with the value of .public boolean forceClientToSrvConnections()
forceClientToSrvConnections(boolean)
public void forceClientToSrvConnections(boolean forceClientToSrvConnections)
DiscoverySpi
protocol to notify client about it. After
that client opens the required connection from its side.public void connectionRequestor(ConnectionRequestor requestor)
public ConnectionRequestor connectionRequestor()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021