# Interface RuntimeProperties

All Known Implementing Classes:
  `DefaultRuntimeProperties`

public interface RuntimeProperties
Represents a properties map for a given `CayenneRuntime`.

Since:
  3.1

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `get(String key)`
  Returns a String property value for a given key.
  `String`
  `get(String key, String defaultValue)`
  Returns a String property value for a given key or a default value if a value is not present in properties or is null.
  `boolean`
  `getBoolean(String key, boolean defaultValue)`
  `int`
  `getInt(String key, int defaultValue)`
  `long`
  `getLong(String key, long defaultValue)`
  `Map<String,String>`
  `toMap()`
  Returns a snapshot of the properties as a map, with the same key resolution rules as `get(String)`.

- ## Method Details

  - ### get

    String get(String key)
    Returns a String property value for a given key.

  - ### get

    String get(String key, String defaultValue)
    Returns a String property value for a given key or a default value if a value is not present in properties or is null.
    Since:
      4.0

  - ### getInt

    int getInt(String key, int defaultValue)

  - ### getLong

    long getLong(String key, long defaultValue)

  - ### getBoolean

    boolean getBoolean(String key, boolean defaultValue)

  - ### toMap

    Map<String,String> toMap()
    Returns a snapshot of the properties as a map, with the same key resolution rules as `get(String)`.
    Since:
      5.0