protected class AbstractNonblockingServer.FrameBuffer
extends java.lang.Object
Constructor and Description |
---|
AbstractNonblockingServer.FrameBuffer(TNonblockingTransport trans,
java.nio.channels.SelectionKey selectionKey,
AbstractNonblockingServer.AbstractSelectThread selectThread) |
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 AbstractNonblockingServer.FrameBuffer(TNonblockingTransport trans, java.nio.channels.SelectionKey selectionKey, AbstractNonblockingServer.AbstractSelectThread selectThread)
public boolean read()
public boolean write()
public void changeSelectInterests()
public void close()
public boolean isFrameFullyRead()
public void responseReady()
public void invoke()