|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Invocation
TODO javadoc.
| Nested Class Summary | |
|---|---|
static interface |
Invocation.Builder
TODO javadoc. |
| Method Summary | ||
|---|---|---|
Configuration |
configuration()
Get access to the underlying configuration. |
|
Response |
invoke()
Synchronously invoke the request and receive a response back. |
|
|
invoke(Class<T> responseType)
Synchronously invoke the request and receive a response of the specified type back. |
|
|
invoke(TypeLiteral<T> responseType)
Synchronously invoke the request and receive a response of the specified generic type back. |
|
Future<Response> |
submit()
Submit the request for an asynchronous invocation and receive a future response back. |
|
|
submit(Class<T> responseType)
Submit the request for an asynchronous invocation and receive a future response of the specified type back. |
|
|
submit(InvocationCallback<T> callback)
Submit the request for an asynchronous invocation and register an InvocationCallback
to process the future result of the invocation. |
|
|
submit(TypeLiteral<T> responseType)
Submit the request for an asynchronous invocation and receive a future response of the specified generic type back. |
|
| Method Detail |
|---|
Response invoke()
throws InvocationException
response object as a result of the request invocation.
InvocationException - in case the invocation failed.
<T> T invoke(Class<T> responseType)
throws InvocationException
T - response typeresponseType - Java type the response should be converted into.
InvocationException - in case the invocation failed.
<T> T invoke(TypeLiteral<T> responseType)
throws InvocationException
T - generic response typeresponseType - type literal representing a generic Java type the response should be converted into.
InvocationException - in case the invocation failed.Future<Response> submit()
response object as a result of the request invocation.<T> Future<T> submit(Class<T> responseType)
T - response typeresponseType - Java type the response should be converted into.
<T> Future<T> submit(TypeLiteral<T> responseType)
T - generic response typeresponseType - type literal representing a generic Java type the response should be converted into.
<T> Future<T> submit(InvocationCallback<T> callback)
InvocationCallback
to process the future result of the invocation.
T - response typecallback - invocation callback for asynchronous processing of the request invocation result.
Configuration configuration()
configuration.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||