|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rabbit.httpio.BaseSocketHandler
public abstract class BaseSocketHandler
A base class for socket handlers.
Constructor Summary | |
---|---|
BaseSocketHandler(SocketChannel channel,
BufferHandle bh,
NioHandler nioHandler)
|
Method Summary | |
---|---|
void |
closed()
Does nothing by default |
protected void |
closeDown()
|
protected ByteBuffer |
getBuffer()
|
BufferHandle |
getBufferHandle()
|
SocketChannel |
getChannel()
|
String |
getDescription()
|
protected Logger |
getLogger()
|
Long |
getTimeout()
|
protected void |
releaseBuffer()
|
void |
timeout()
Does nothing by default |
boolean |
useSeparateThread()
Runs on the selector thread by default |
void |
waitForRead(ReadHandler rh)
|
void |
waitForWrite(WriteHandler rh)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseSocketHandler(SocketChannel channel, BufferHandle bh, NioHandler nioHandler)
Method Detail |
---|
protected ByteBuffer getBuffer()
protected void releaseBuffer()
public void closed()
closed
in interface SocketChannelHandler
public void timeout()
timeout
in interface SocketChannelHandler
public boolean useSeparateThread()
useSeparateThread
in interface SocketChannelHandler
public String getDescription()
getDescription
in interface SocketChannelHandler
public Long getTimeout()
getTimeout
in interface SocketChannelHandler
protected Logger getLogger()
protected void closeDown()
public SocketChannel getChannel()
public BufferHandle getBufferHandle()
public void waitForRead(ReadHandler rh)
public void waitForWrite(WriteHandler rh)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |