public abstract class QueuingAsyncSocketConnection extends AsyncSocketConnection
| Modifier and Type | Field and Description |
|---|---|
static long |
MAX_Q_SIZE_BYTES |
protected org.nustaq.offheap.BinaryQueue |
readQueue |
protected org.nustaq.offheap.bytez.niobuffers.ByteBufferBasicBytez |
wrapper |
protected org.nustaq.offheap.BinaryQueue |
writeQueue |
chan, key, readBuf, writePromise, writingBuffer| Constructor and Description |
|---|
QueuingAsyncSocketConnection(SelectionKey key,
SocketChannel chan) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkQSize() |
void |
closed(Exception ioe) |
protected abstract void |
dataReceived(org.nustaq.offheap.BinaryQueue queue) |
void |
dataReceived(ByteBuffer buf) |
void |
tryFlush() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(ByteBuffer buf) |
void |
write(int val) |
canWrite, checkThread, close, directWrite, isClosedpublic static long MAX_Q_SIZE_BYTES
protected org.nustaq.offheap.BinaryQueue readQueue
protected org.nustaq.offheap.BinaryQueue writeQueue
protected org.nustaq.offheap.bytez.niobuffers.ByteBufferBasicBytez wrapper
public QueuingAsyncSocketConnection(SelectionKey key, SocketChannel chan)
protected void checkQSize()
public void write(ByteBuffer buf)
public void write(byte[] b)
public void write(byte[] b,
int off,
int len)
public void write(int val)
public void tryFlush()
public void dataReceived(ByteBuffer buf)
dataReceived in class AsyncSocketConnectionprotected abstract void dataReceived(org.nustaq.offheap.BinaryQueue queue)
public void closed(Exception ioe)
closed in class AsyncSocketConnectionCopyright © 2015. All rights reserved.