|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mortbay.thread.Timeout.Task org.mortbay.jetty.nio.SelectChannelConnector.RetryContinuation
private class SelectChannelConnector.RetryContinuation
Field Summary | |
---|---|
(package private) SelectChannelConnector.HttpEndPoint |
_endPoint
|
(package private) boolean |
_new
|
(package private) Object |
_object
|
(package private) boolean |
_pending
|
(package private) boolean |
_resumed
|
(package private) long |
_timeout
|
Constructor Summary | |
---|---|
private |
SelectChannelConnector.RetryContinuation()
|
Method Summary | |
---|---|
void |
expire()
Expire task. |
Object |
getObject()
Arbitrary object associated with the continuation for context. |
(package private) long |
getTimeout()
|
boolean |
isNew()
Is this a newly created Continuation. |
boolean |
isPending()
Get the pending status? A continuation is pending while the handling of a call to suspend has not completed. |
private void |
redispatch()
|
void |
resume()
Resume the request. |
(package private) void |
setEndPoint(SelectChannelConnector.HttpEndPoint ep)
|
void |
setObject(Object object)
Arbitrary object associated with the continuation for context. |
boolean |
suspend(long timeout)
Suspend handling. |
Methods inherited from class org.mortbay.thread.Timeout.Task |
---|
cancel, isExpired, reschedule, schedule, schedule, setNext, unlink |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
Object _object
SelectChannelConnector.HttpEndPoint _endPoint
long _timeout
boolean _new
boolean _pending
boolean _resumed
Constructor Detail |
---|
private SelectChannelConnector.RetryContinuation()
Method Detail |
---|
void setEndPoint(SelectChannelConnector.HttpEndPoint ep)
long getTimeout()
public boolean isNew()
Continuation
A newly created continuation has not had #getEvent(long)
called on it.
isNew
in interface Continuation
public boolean isPending()
Continuation
Continuation.suspend(long)
.
For non-blocking continuations, pending is true until a second call to Continuation.suspend(long)
,
thus this method can be used to determine if a request is being retried.
isPending
in interface Continuation
public void expire()
Timeout.Task
expire
in class Timeout.Task
public boolean suspend(long timeout)
Continuation
suspend
in interface Continuation
public void resume()
Continuation
resume
in interface Continuation
private void redispatch()
public Object getObject()
Continuation
getObject
in interface Continuation
public void setObject(Object object)
Continuation
setObject
in interface Continuation
object
- An arbitrary object to associate with the continuation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |