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