protected class TNonblockingServer.FrameBuffer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
TNonblockingTransport |
trans_ |
Constructor and Description |
---|
TNonblockingServer.FrameBuffer(TNonblockingTransport trans,
java.nio.channels.SelectionKey selectionKey) |
Modifier and Type | Method and Description |
---|---|
void |
changeSelectInterests()
Give this FrameBuffer a chance to set its interest to write, once data
has come in.
|
void |
close()
Shut the connection down.
|
void |
invoke()
Actually invoke the method signified by this FrameBuffer.
|
boolean |
isFrameFullyRead()
Check if this FrameBuffer has a full frame read.
|
boolean |
read()
Give this FrameBuffer a chance to read.
|
void |
responseReady()
After the processor has processed the invocation, whatever thread is
managing invocations should call this method on this FrameBuffer so we
know it's time to start trying to write again.
|
boolean |
write()
Give this FrameBuffer a chance to write its output to the final client.
|
public final TNonblockingTransport trans_
public TNonblockingServer.FrameBuffer(TNonblockingTransport trans, java.nio.channels.SelectionKey selectionKey)
public boolean read()
public boolean write()
public void changeSelectInterests()
public void close()
public boolean isFrameFullyRead()
public void responseReady()
public void invoke()