|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.grizzly.suspendable.Suspendable
public class Suspendable
An Object representing the result of an suspendable operation like SuspendableFilter@#suspend
An instance of that class can be used to resume or cancel a suspended connection.
See SuspendableFilter for more information.
| Constructor Summary | |
|---|---|
protected |
Suspendable(SuspendableFilter suspendableFilter)
|
| Method Summary | |
|---|---|
void |
cancel()
Cancel a suspended connection. |
protected SelectionKey |
getKey()
Return the underlying SelectionKey representing the connection. |
boolean |
isResumed()
Return true if the connection associated with this instance has been #resumed |
boolean |
resume()
Resume a suspended connection. |
protected void |
setKey(SelectionKey key)
Set the underlying SelectionKey. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Suspendable(SuspendableFilter suspendableFilter)
| Method Detail |
|---|
public boolean resume()
IllegalStateException.
public boolean isResumed()
#resumed
public void cancel()
#resumed, calling
resume with produce an IllegalStateException.
protected SelectionKey getKey()
protected void setKey(SelectionKey key)
key - the underlying SelectionKey.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||