T
- specific wrapping class of particular configuration objects typejava.util.concurrent.Future<java.util.Collection<T>>
public interface AsyncRequestResult<T extends ICfgObject>
extends java.util.concurrent.Future<java.util.Collection<T>>
Modifier and Type | Method | Description |
---|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
Attempts to cancel execution of this task.
|
java.util.Collection<T> |
get() |
Waits if necessary for the read operation to complete, and then
returns its result.
|
java.util.Collection<T> |
get(long timeout,
java.util.concurrent.TimeUnit unit) |
Waits if necessary for at most the given time for the request
to complete, and then returns its result, if available.
|
java.lang.Exception |
getException() |
This function returns raised exception when operation is failed.
|
boolean |
isCancelled() |
Returns true if this task was canceled before it completed
normally.
|
boolean |
isCompletedSynchronously() |
|
boolean |
isDone() |
Returns true if this task completed.
|
boolean |
isFailed() |
Returns true if this task finished with some error.
|
java.util.Collection<T> |
partialGet() |
Returns accumulated read data immediately.
|
boolean isDone()
isDone
in interface java.util.concurrent.Future<T extends ICfgObject>
boolean isFailed()
boolean isCompletedSynchronously()
java.lang.Exception getException()
boolean cancel(boolean mayInterruptIfRunning)
cancel
in interface java.util.concurrent.Future<T extends ICfgObject>
mayInterruptIfRunning
- true if the thread executing this
task should be interrupted;
otherwise, in-progress tasks are allowed to completeboolean isCancelled()
isCancelled
in interface java.util.concurrent.Future<T extends ICfgObject>
java.util.Collection<T> get() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
get
in interface java.util.concurrent.Future<T extends ICfgObject>
java.util.concurrent.CancellationException
- if the computation was canceledjava.util.concurrent.ExecutionException
- if the computation threw an
exceptionjava.lang.InterruptedException
- if the current thread was interrupted
while waitingjava.util.Collection<T> get(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
get
in interface java.util.concurrent.Future<T extends ICfgObject>
timeout
- the maximum time to waitunit
- the time unit of the timeout argumentjava.util.concurrent.CancellationException
- if the computation was canceledjava.util.concurrent.ExecutionException
- if the computation threw an
exceptionjava.util.concurrent.TimeoutException
- if the wait timed outjava.lang.InterruptedException
- if the current thread was interrupted
while waitingjava.util.Collection<T> partialGet()
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.