|
Configuration Platform SDK 7.6 API Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
boolean |
cancel(boolean mayInterruptIfRunning)
Attempts to cancel execution of this task. |
Message |
get()
Waits if necessary for the request to complete, and then retrieves its result. |
Message |
get(long timeout)
Waits if necessary for at most the given time for the request to complete, and then retrieves its result, if available. |
Message |
getRequest()
|
Message |
getResponse()
Waits if necessary for the request to complete, and then retrieves its result. |
Message |
getResponse(long timeout)
Waits if necessary for at most the given time for the request to complete, and then retrieves its result, if available. |
boolean |
isCanceled()
Returns true if this task was cancelled before it completed normally. |
boolean |
isDone()
Returns true if this task completed. |
Method Detail |
public boolean cancel(boolean mayInterruptIfRunning)
mayInterruptIfRunning
- true if the thread executing this task
should be interrupted; otherwise,
in-progress tasks are allowed to complete
public Message get() throws java.lang.InterruptedException
java.lang.InterruptedException
- if thread is interruptedgetResponse()
public Message get(long timeout) throws java.lang.InterruptedException
timeout
- timeout in milliseconds
java.lang.InterruptedException
- if thread is interruptedgetResponse(long)
public boolean isCanceled()
public boolean isDone()
public Message getResponse() throws java.lang.InterruptedException
java.lang.InterruptedException
- if thread is interruptedpublic Message getResponse(long timeout) throws java.lang.InterruptedException
timeout
- timeout in milliseconds
java.lang.InterruptedException
- if thread is interruptedpublic Message getRequest()
|
Configuration Platform SDK 7.6 API Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |