T - the type of the future value.U - the result type of the transformation.public interface Transformer<T,U>
Interface to be used by future.transform.
| Modifier and Type | Method and Description |
|---|---|
U |
onException(Throwable ex)
Transformation called when the future completes with a failure.
|
U |
onValue(T value)
Transformation called when the future completes with a value.
|
Copyright © 2017. All Rights Reserved.