InvokeHttpMethod, as async interfaces are no longer supported.@Deprecated public class InvokeSyncToAsyncHttpMethod extends Object implements com.google.common.base.Function<Invocation,Object>
| Modifier and Type | Method and Description |
|---|---|
Object |
apply(Invocation in)
Deprecated.
|
boolean |
equals(Object o)
Deprecated.
|
int |
hashCode()
Deprecated.
|
Object |
invoke(Invocation invocation)
Deprecated.
invokes the HttpCommand associated with
invocation,
parses its response, and
applies a fallback
if a Throwable is encountered. |
Object |
invokeWithTimeout(Invocation invocation,
long limitNanos)
Deprecated.
calls
invoke(Invocation), timing out after the specified time
limit. |
com.google.common.util.concurrent.ListenableFuture<?> |
submit(Invocation invocation)
Deprecated.
submits the HttpCommand associated with
invocation,
parses its response, and
applies a fallback
if a Throwable is encountered. |
String |
toString()
Deprecated.
|
public Object apply(Invocation in)
apply in interface com.google.common.base.Function<Invocation,Object>public com.google.common.util.concurrent.ListenableFuture<?> submit(Invocation invocation)
invocation,
parses its response, and
applies a fallback
if a Throwable is encountered. Parsing and Fallback occur on the
userExecutor thread.public Object invoke(Invocation invocation)
invocation,
parses its response, and
applies a fallback
if a Throwable is encountered.public Object invokeWithTimeout(Invocation invocation, long limitNanos)
invoke(Invocation), timing out after the specified time
limit. If the target method call finished before the limit is reached, the
return value or exception is propagated to the caller exactly as-is. If,
on the other hand, the time limit is reached, we attempt to abort the call
to the target, and throw an UncheckedTimeoutException to the
caller.invocation - the Invocation to invoke via invoke(Invocation)limitNanos - with timeoutUnit, the maximum length of time to wait in
nanosecondsInterruptedException - if our thread is interrupted during executionUncheckedTimeoutException - if the time limit is reachedTimeLimiter.callWithTimeout(Callable, long, TimeUnit, boolean)public boolean equals(Object o)
equals in interface com.google.common.base.Function<Invocation,Object>equals in class ObjectCopyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.