public abstract class InvocationCallbackBase<T> extends Object implements InvokableBuilder<T>
Constructor and Description |
---|
InvocationCallbackBase() |
Modifier and Type | Method and Description |
---|---|
InvokeArguments<T> |
getArgumentsInvocation()
Get the invoke arguments for the API call
|
protected abstract InvokeArguments<T> |
getInvokeArguments() |
Future<T> |
invoke()
Invoke the API and return the result
|
RawInvokableBuilder |
raw()
Cause invoke() to return the result as a raw client response
|
InvokableBuilder<T> |
withCallback(javax.ws.rs.client.InvocationCallback<T> callback)
Make the API call using the specified notification callback
|
public InvokableBuilder<T> withCallback(javax.ws.rs.client.InvocationCallback<T> callback)
InvokableBuilder
withCallback
in interface InvokableBuilder<T>
callback
- the callback to usepublic final RawInvokableBuilder raw()
InvokableBuilder
raw
in interface InvokableBuilder<T>
public final Future<T> invoke()
InvokableBuilder
invoke
in interface InvokableBuilder<T>
public final InvokeArguments<T> getArgumentsInvocation()
InvokableBuilder
getArgumentsInvocation
in interface InvokableBuilder<T>
protected abstract InvokeArguments<T> getInvokeArguments()
Copyright © 2020. All rights reserved.