Interface ServerMethodInvoker


public interface ServerMethodInvoker
  • Method Details

    • getMethodMetadata

      Optional<MethodMetadata> getMethodMetadata(String name)
      Returns:
      metadata for the specified method or null if method is not supported
    • invoke

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

      If the invocation fails, the future should contain a known application exception or a raw TApplicationException.

    • recordResult

      void recordResult(String methodName, long startTime, com.google.common.util.concurrent.ListenableFuture<Object> result)
      Record results timing for a method invocation.