public class RequestHandle
extends java.lang.Object
| 构造器和说明 |
|---|
RequestHandle(AsyncHttpRequest request) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning)
Attempts to cancel this request.
|
boolean |
isCancelled()
Returns true if this task was cancelled before it completed normally.
|
boolean |
isFinished()
Returns true if this task completed.
|
boolean |
shouldBeGarbageCollected() |
public RequestHandle(AsyncHttpRequest request)
public boolean cancel(boolean mayInterruptIfRunning)
After this method returns, subsequent calls to isDone() will always return true. Subsequent calls to isCancelled() will always return true if this method returned true.
mayInterruptIfRunning - true if the thread executing this request should be interrupted;
otherwise, in-progress requests are allowed to completepublic boolean isFinished()
public boolean isCancelled()
public boolean shouldBeGarbageCollected()