Package net.solarnetwork.node.dao
Interface TransientSettingDao
- All Known Implementing Classes:
DefaultTransientSettingDao
public interface TransientSettingDao
API for a transient setting DAO.
This API is designed for simple, small, and fast access to transient runtime
data shared across SolarNode. Values added to the maps returned from
settings(String) are not persisted across application
restarts. The API is arranged as a map of maps, both with string keys,
similar to how the SettingDao uses a primary key composed of two
strings to group related settings together.
- Since:
- 2.5
- Version:
- 1.0
- Author:
- matt
-
Method Summary
Modifier and TypeMethodDescription<V> ConcurrentMap<String,V> Get the settings map for a given key.
-
Method Details
-
settings
Get the settings map for a given key.This method will always return the same map instance for a given key.
- Type Parameters:
V- the value type to cast to; note this is only a generic casting operation for convenience and the actual map is expected to actually be declared asConcurrentMap<String, Object>- Parameters:
key- the settings key to get- Returns:
- the settings for the given key, never null
-