Callback to be used with future.respond. @param the type of the future.
| 6 | * @param <T> the type of the future. |
| 7 | */ |
| 8 | public interface Responder<T> { |
| 9 | |
| 10 | /** |
| 11 | * Method called when the future completes with an exception. |
| 12 | * |
| 13 | * @param ex the failure |
| 14 | */ |
| 15 | public void onException(Throwable ex); |
| 16 | |
| 17 | /** |
| 18 | * Method called when the future completes with a value. |
| 19 | * |
| 20 | * @param value the value. |
| 21 | */ |
| 22 | public void onValue(T value); |
| 23 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…