public interface ServerMethodInvoker
| Modifier and Type | Method and Description |
|---|---|
Optional<MethodMetadata> |
getMethodMetadata(String name) |
com.google.common.util.concurrent.ListenableFuture<Object> |
invoke(ServerInvokeRequest request)
Invoke the specified method asynchronously.
|
void |
recordResult(String methodName,
long startTime,
com.google.common.util.concurrent.ListenableFuture<Object> result)
Record results timing for a method invocation.
|
Optional<MethodMetadata> getMethodMetadata(String name)
com.google.common.util.concurrent.ListenableFuture<Object> invoke(ServerInvokeRequest request)
If the invocation fails, the future should contain a known application exception or a raw
TApplicationException.
Copyright © 2012–2023. All rights reserved.