Package org.elasticsearch.tasks
Interface TaskListener<Response>
- All Known Implementing Classes:
 LoggingTaskListener
public interface TaskListener<Response>
Listener for Task success or failure.
- 
Method Summary
 
- 
Method Details
- 
onResponse
Handle task response. This response may constitute a failure or a success but it is up to the listener to make that decision.- Parameters:
 task- the task being executed. May be null if the action doesn't create a taskresponse- the response from the action that executed the task
 - 
onFailure
A failure caused by an exception at some phase of the task.- Parameters:
 task- the task being executed. May be null if the action doesn't create a taske- the failure
 
 -