public class RpcGatewayUtils extends Object
RpcGateway
implementations.Modifier and Type | Method and Description |
---|---|
static Duration |
extractRpcTimeout(Annotation[][] parameterAnnotations,
Object[] args,
Duration defaultTimeout)
Extracts the
RpcTimeout annotated rpc timeout value from the list of given method
arguments. |
public static Duration extractRpcTimeout(Annotation[][] parameterAnnotations, Object[] args, 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–2024 The Apache Software Foundation. All rights reserved.