|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.khelekore.rnio.impl.UnlimitedSocketHandler<T>
public abstract class UnlimitedSocketHandler<T extends SelectableChannel>
A socket handler that never times out and always runs on the selector thread.
| Field Summary | |
|---|---|
NioHandler |
nioHandler
|
T |
sc
|
| Constructor Summary | |
|---|---|
UnlimitedSocketHandler(T sc,
NioHandler nioHandler)
|
|
| Method Summary | |
|---|---|
void |
closed()
Signal that the channel has been closed. |
String |
getDescription()
Returns the class name. |
Long |
getTimeout()
Will return null to indicate no timeout on accepts. |
void |
timeout()
Handle timeouts. |
boolean |
useSeparateThread()
Will always run on the selector thread so return false. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final T extends SelectableChannel sc
public final NioHandler nioHandler
| Constructor Detail |
|---|
public UnlimitedSocketHandler(T sc,
NioHandler nioHandler)
| Method Detail |
|---|
public Long getTimeout()
getTimeout in interface SocketChannelHandlerpublic String getDescription()
getDescription in interface SocketChannelHandlerpublic boolean useSeparateThread()
useSeparateThread in interface SocketChannelHandlerpublic void timeout()
timeout in interface SocketChannelHandlerpublic void closed()
SocketChannelHandler
closed in interface SocketChannelHandler
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||