Interface MethodInvoker
public interface MethodInvoker
-
Method Summary
Modifier and TypeMethodDescriptioncom.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.
-
Method Details
-
invoke
Invoke the specified method asynchronously.If the invocation fails with a known application exception, the future will contain a
DriftApplicationExceptionwrapper; otherwise, the future will contain the raw transport exception. -
delay
com.google.common.util.concurrent.ListenableFuture<?> delay(io.airlift.units.Duration duration) Gets a future that completes after the specified delay.
-