com.esri.core.tasks
Class Task<V>

java.lang.Object
  extended by com.esri.core.tasks.Task<V>
All Implemented Interfaces:
Serializable, Callable<V>
Direct Known Subclasses:
IdentifyTask, QueryTask

public abstract class Task<V>
extends Object
implements Callable<V>, Serializable

See Also:
Serialized Form

Field Summary
protected  TaskParameters actionInput
           
 
Constructor Summary
protected Task(TaskParameters actionInput)
           
protected Task(TaskParameters actionInput, TaskListener<V> listener)
           
 
Method Summary
 V call()
           
protected abstract  V execute()
           
 TaskParameters getActionInput()
           
 void setActionInput(TaskParameters taskInput)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

actionInput

protected TaskParameters actionInput
Constructor Detail

Task

protected Task(TaskParameters actionInput)

Task

protected Task(TaskParameters actionInput,
               TaskListener<V> listener)
Method Detail

getActionInput

public TaskParameters getActionInput()
Returns:
the taskInput

setActionInput

public void setActionInput(TaskParameters taskInput)
Parameters:
taskInput - the taskInput to set

execute

protected abstract V execute()
                      throws Exception
Throws:
Exception

call

public final V call()
Specified by:
call in interface Callable<V>


Copyright © 2010. All Rights Reserved.