public static boolean validateMaxExecutionTimeout ( Long operationExpiryTimeInMs , long additionalInterval ) { if ( operationExpiryTimeInMs != null ) { long currentTime = new Date ( ) . getTime ( ) ; return operationExpiryTimeInMs < currentTime + additionalInterval ; } return false ; }
Returns a value representing whether the maximum execution time would be surpassed .