|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.grizzly.suspendable.SuspendableMonitor
public class SuspendableMonitor
A secondary Selector
used to keep the state of a suspended
connection (SelectionKey
). See SuspendableFilter
for more info.
TODO: Add Pipelining/Multiplexing support.
Constructor Summary | |
---|---|
SuspendableMonitor()
Start a new Thread with a Selector running. |
Method Summary | |
---|---|
protected void |
expireIdleKeys()
Expire the SelectionKey? |
protected void |
interrupted(SelectionKey key)
Interrupt a suspended SelectionKey that have timed out. |
void |
run()
|
protected void |
suspend(SuspendableFilter.KeyHandler kh)
Suspend the ReadableChannel represented by this SuspendableFilter.KeyHandler
by registering it on secondary Selector. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SuspendableMonitor()
Method Detail |
---|
public void run()
run
in interface Runnable
protected void expireIdleKeys()
protected void interrupted(SelectionKey key)
protected void suspend(SuspendableFilter.KeyHandler kh) throws ClosedChannelException
ReadableChannel
represented by this SuspendableFilter.KeyHandler
by registering it on secondary Selector.
kh
- The KeyHandler which hold the current SelectionKey.
ClosedChannelException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |