tuweni / org.apache.tuweni.config / Configuration / getLong

getLong

abstract fun getLong(key: String!): Long (source)

Get a long from this configuration.

Parameters

key - String!: A configuration key (e.g. "server.address.port").

Exceptions

IllegalArgumentException - If the key cannot be parsed.

InvalidConfigurationPropertyTypeException - If the value is not a long.

NoConfigurationPropertyException - If the key was not set in the configuration.

Return
Long: The value.