public class RpcGatewayUtils extends Object
RpcGateway implementations.| Modifier and Type | Method and Description |
|---|---|
static java.time.Duration |
extractRpcTimeout(Annotation[][] parameterAnnotations,
Object[] args,
java.time.Duration defaultTimeout)
Extracts the
RpcTimeout annotated rpc timeout value from the list of given method
arguments. |
public static java.time.Duration extractRpcTimeout(Annotation[][] parameterAnnotations, Object[] args, java.time.Duration defaultTimeout)
RpcTimeout annotated rpc timeout value from the list of given method
arguments. If no RpcTimeout annotated parameter could be found, then the default
timeout is returned.parameterAnnotations - Parameter annotationsargs - Array of argumentsdefaultTimeout - Default timeout to return if no RpcTimeout annotated parameter
has been foundCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.