Interface AsyncControlClient.Response<T>
- Type Parameters:
T- the result type
- Enclosing interface:
AsyncControlClient
public static interface AsyncControlClient.Response<T>
Represents a response produced by the remote end.
-
Method Summary
Modifier and TypeMethodDescriptionget()Gets the response, throwing the appropriateExceptionif there was a problem processing the Requestdefault <U> AsyncControlClient.Response<U> Maps thisAsyncControlClient.Responseto the new type using the suppliedFunction<T,U>
-
Method Details
-
get
Gets the response, throwing the appropriateExceptionif there was a problem processing the Request- Returns:
- the result
- Throws:
BaseException
-
map
Maps thisAsyncControlClient.Responseto the new type using the suppliedFunction<T,U> - Type Parameters:
U- the desired type- Parameters:
mapper- the mapper function- Returns:
- a
AsyncControlClient.Response<U>
-