Interface ServerMethodInvoker
public interface ServerMethodInvoker
-
Method Summary
Modifier and TypeMethodDescriptiongetMethodMetadata(String name) com.google.common.util.concurrent.ListenableFuture<Object>invoke(ServerInvokeRequest request) Invoke the specified method asynchronously.voidrecordResult(String methodName, long startTime, com.google.common.util.concurrent.ListenableFuture<Object> result) Record results timing for a method invocation.
-
Method Details
-
getMethodMetadata
- Returns:
- metadata for the specified method or null if method is not supported
-
invoke
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.
-