Package org.restlet.resource
Interface Result<T>
- Type Parameters:
T- The class of the result object returned in case of success.
public interface Result<T>
Callback interface for asynchronous tasks.
- Author:
- Jerome Louvel
-
Method Summary
-
Method Details
-
onFailure
Method called back by the associated object when a failure is detected.- Parameters:
caught- The exception or error caught.
-
onSuccess
Method called back by the associated object in case of success.- Parameters:
result- The result object.
-