public abstract class SerializableFuture<V extends java.io.Serializable>
extends java.lang.Object
implements java.util.concurrent.Future<V>
ExecutorService#scheduleFuture(SerializableCallable)
. The
SerializableFuture may be used to acquire the result of a scheduled task.
SerializableFutures define a single jobId that an executor service may set and
use to interact with the job in the executor service scheduling implementation.
An executor service could produce a SerializableFuture in a different VM than
where the associated callable was scheduled.Constructor and Description |
---|
SerializableFuture() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getJobId()
Return the executor service specific job id associated with this task.
|
void |
setJobId(java.lang.String jobId)
Allow an executor service to define a domain specific job id when when the
task is scheduled.
|
public void setJobId(java.lang.String jobId)
public java.lang.String getJobId()