Interface MethodInvoker


public interface MethodInvoker
  • Method Summary

    Modifier and Type
    Method
    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 the specified method asynchronously.
  • Method Details

    • invoke

      com.google.common.util.concurrent.ListenableFuture<Object> invoke(InvokeRequest request)
      Invoke the specified method asynchronously.

      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.

    • delay

      com.google.common.util.concurrent.ListenableFuture<?> delay(io.airlift.units.Duration duration)
      Gets a future that completes after the specified delay.