public abstract class NioBaseServer extends BaseServer
| Modifier and Type | Class and Description |
|---|---|
protected class |
NioBaseServer.Acceptor |
BaseServer.Reaper| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Thread |
acceptor |
protected boolean |
copy_on_partial_write |
protected int |
max_send_buffers |
protected int |
num_selects |
protected long |
reader_idle_time |
protected java.util.concurrent.locks.Lock |
reg_lock |
protected boolean |
registration |
protected java.nio.channels.Selector |
selector |
client_bind_addr, client_bind_port, conn_expire_time, conn_listeners, conns, defer_client_binding, factory, linger, local_addr, log, reaper, reaperInterval, receiver, recv_buf_size, running, send_buf_size, sock_conn_timeout, sock_creation_lock, tcp_nodelay, time_service, use_peer_connections| Modifier | Constructor and Description |
|---|---|
protected |
NioBaseServer(ThreadFactory f) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptorRunning() |
boolean |
copyOnPartialWrite() |
NioBaseServer |
copyOnPartialWrite(boolean b) |
protected NioConnection |
createConnection(Address dest)
Creates a new connection object to target dest, but doesn't yet connect it
|
protected void |
handleAccept(java.nio.channels.SelectionKey key) |
int |
maxSendBuffers() |
NioBaseServer |
maxSendBuffers(int num) |
int |
numPartialWrites() |
int |
numSelects() |
java.lang.String |
printBuffers()
Prints send and receive buffers for all connections
|
long |
readerIdleTime() |
NioBaseServer |
readerIdleTime(long t) |
protected java.nio.channels.SelectionKey |
register(java.nio.channels.SelectableChannel ch,
int interest_ops,
NioConnection conn) |
boolean |
selectorOpen() |
addConnection, addConnectionListener, clearConnections, clientBindAddress, clientBindAddress, clientBindPort, clientBindPort, close, closeConnection, connectionClosed, connectionEstablished, connectionEstablishedTo, connExpireTime, connExpireTimeout, deferClientBinding, deferClientBinding, explanation, getConnection, getNumConnections, getNumOpenConnections, hasConnection, linger, linger, localAddress, localAddress, log, log, notifyConnectionClosed, notifyConnectionEstablished, printConnections, reaperInterval, reaperInterval, receive, receive, receiveBufferSize, receiveBufferSize, receiver, receiver, removeConnectionIfPresent, removeConnectionListener, replaceConnection, retainAll, running, send, send, sendBufferSize, sendBufferSize, sendToAll, sendToAll, socketConnectionTimeout, socketConnectionTimeout, start, stop, tcpNodelay, tcpNodelay, timeService, timeService, toString, usePeerConnections, usePeerConnections, validateArgsprotected java.nio.channels.Selector selector
protected java.lang.Thread acceptor
protected final java.util.concurrent.locks.Lock reg_lock
protected volatile boolean registration
protected int max_send_buffers
protected int num_selects
protected boolean copy_on_partial_write
protected long reader_idle_time
protected NioBaseServer(ThreadFactory f)
public int maxSendBuffers()
public NioBaseServer maxSendBuffers(int num)
public boolean selectorOpen()
public boolean acceptorRunning()
public int numSelects()
public boolean copyOnPartialWrite()
public long readerIdleTime()
public NioBaseServer readerIdleTime(long t)
public NioBaseServer copyOnPartialWrite(boolean b)
public int numPartialWrites()
public java.lang.String printBuffers()
protected java.nio.channels.SelectionKey register(java.nio.channels.SelectableChannel ch,
int interest_ops,
NioConnection conn)
throws java.lang.Exception
java.lang.Exceptionprotected NioConnection createConnection(Address dest) throws java.lang.Exception
BaseServercreateConnection in class BaseServerjava.lang.Exceptionprotected void handleAccept(java.nio.channels.SelectionKey key)
throws java.lang.Exception
java.lang.ExceptionCopyright © 1998-2020 Red Hat. All Rights Reserved.