public long getLongPropertyWithDefault()

in src/main/java/com/amazonaws/secretsmanager/util/Config.java [235:247]


    public long getLongPropertyWithDefault(String propertyName, long defaultValue) {
        String propertyValue = config.getProperty(propertyName);
        if (propertyValue == null) {
            return defaultValue;
        } else {
            try  {
                return Long.parseLong(propertyValue);
            } catch (NumberFormatException e) {
                throw new PropertyException(fullPropertyName(propertyName) + " must be of type long. Please check "
                                            + Config.CONFIG_FILE_NAME + " or your system properties for typos.", e);
            }
        }
    }