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, isClosed, key, myActor, readBuf, theExecutingThread, writePromise, writingBuffer| Constructor and Description |
|---|
QueuingAsyncSocketConnection(SelectionKey key,
SocketChannel chan) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkQSize() |
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, closed, 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)
Copyright © 2017. All rights reserved.