public interface MethodInvoker
| Modifier and Type | Method and Description |
|---|---|
com.google.common.util.concurrent.ListenableFuture<?> |
delay(io.airlift.units.Duration duration)
Gets a future that completes after the specified delay.
|
com.google.common.util.concurrent.ListenableFuture<Object> |
invoke(InvokeRequest request)
Invoke the specified method asynchronously.
|
com.google.common.util.concurrent.ListenableFuture<Object> invoke(InvokeRequest request)
If the invocation fails with a known application exception, the future will contain a
DriftApplicationException wrapper; otherwise, the future will contain the raw transport exception.
com.google.common.util.concurrent.ListenableFuture<?> delay(io.airlift.units.Duration duration)
Copyright © 2012–2024. All rights reserved.