Package sk.ipesoft.d2000.async
Interface FutureEventHandler<V>
-
- Type Parameters:
V- type of the result
public interface FutureEventHandler<V>Implementations of this interface are notified by implementations ofFutureEventwhen result of the future is available.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonException(java.lang.Throwable error)Handle exception being throw during the computation of the future.voidonResult(V result)Handle valid result of the future.
-
-
-
Method Detail
-
onResult
void onResult(V result)
Handle valid result of the future.- Parameters:
result- result of the future
-
onException
void onException(java.lang.Throwable error)
Handle exception being throw during the computation of the future.- Parameters:
error- exception being thrown
-
-