Package org.apache.flink.runtime.rpc
Class RpcGatewayUtils
- java.lang.Object
-
- org.apache.flink.runtime.rpc.RpcGatewayUtils
-
public class RpcGatewayUtils extends Object
Utils forRpcGateway
implementations.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Duration
extractRpcTimeout(Annotation[][] parameterAnnotations, Object[] args, Duration defaultTimeout)
Extracts theRpcTimeout
annotated rpc timeout value from the list of given method arguments.
-
-
-
Method Detail
-
extractRpcTimeout
public static Duration extractRpcTimeout(Annotation[][] parameterAnnotations, Object[] args, Duration defaultTimeout)
Extracts theRpcTimeout
annotated rpc timeout value from the list of given method arguments. If noRpcTimeout
annotated parameter could be found, then the default timeout is returned.- Parameters:
parameterAnnotations
- Parameter annotationsargs
- Array of argumentsdefaultTimeout
- Default timeout to return if noRpcTimeout
annotated parameter has been found- Returns:
- Timeout extracted from the array of arguments or the default timeout
-
-