public class FixedBufferChannel extends BaseNetworkChannel
channelHandler, looper, pendingReceives, pendingSends, readEdge, readHeader, readingRequest, readMessageSize, readStatus, selectHandler, socketChannel, writeHeader, writeStatus
Constructor and Description |
---|
FixedBufferChannel(Config cfg,
Progress progress,
SelectHandler handler,
java.nio.channels.SocketChannel channel,
ChannelHandler msgHandler) |
Modifier and Type | Method and Description |
---|---|
boolean |
addReadRequest(TCPMessage request) |
void |
read() |
TCPMessage |
readRequest(java.nio.channels.SocketChannel channel)
Read the request
|
addWriteRequest, clear, disableReading, disableWriting, enableReading, enableWriting, forceFlush, isPending, write
public FixedBufferChannel(Config cfg, Progress progress, SelectHandler handler, java.nio.channels.SocketChannel channel, ChannelHandler msgHandler)
public void read()
read
in class BaseNetworkChannel
public boolean addReadRequest(TCPMessage request)
addReadRequest
in class BaseNetworkChannel
public TCPMessage readRequest(java.nio.channels.SocketChannel channel)
readRequest
in class BaseNetworkChannel
channel
-