Methods Summary |
---|
public java.util.concurrent.Future | poll()Retrieves and removes the Future representing the next
completed task or null if none are present.
|
public java.util.concurrent.Future | poll(long timeout, java.util.concurrent.TimeUnit unit)Retrieves and removes the Future representing the next
completed task, waiting if necessary up to the specified wait
time if none are yet present.
|
public java.util.concurrent.Future | submit(java.util.concurrent.Callable task)Submits a value-returning task for execution and returns a Future
representing the pending results of the task. Upon completion,
this task may be taken or polled.
|
public java.util.concurrent.Future | submit(java.lang.Runnable task, V result)Submits a Runnable task for execution and returns a Future
representing that task. Upon completion, this task may be
taken or polled.
|
public java.util.concurrent.Future | take()Retrieves and removes the Future representing the next
completed task, waiting if none are yet present.
|