Interface ReadableDao<T>
-
- Type Parameters:
T
- the entity type this DAO manages
- All Known Subinterfaces:
OverrideableDao<T>
,OverrideablePollOutagesDao
,OverrideableThreshdDao
,OverrideableThresholdingDao
,ReadablePollOutagesDao
,ReadableThreshdDao
,ReadableThresholdingDao
,WriteableDao<T>
,WriteablePollOutagesDao
,WriteableThreshdDao
,WriteableThresholdingDao
- All Known Implementing Classes:
AbstractPollOutagesDao
,AbstractThreshdDao
,AbstractThresholdingDao
,OnmsPollOutagesDao
,OnmsThreshdDao
,OnmsThresholdingDao
,OverrideablePollOutagesDaoImpl
,OverrideableThreshdDaoImpl
,OverrideableThresholdingDaoImpl
,SentinelPollOutagesDao
,SentinelThreshdDao
,SentinelThresholdingDao
public interface ReadableDao<T>
A config DAO that supports only reading and reloading.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
getReadOnlyConfig()
Get the current configuration.void
reload()
Instructs the DAO to reload the configuration from the backing data source immediately.
-
-
-
Method Detail
-
getReadOnlyConfig
T getReadOnlyConfig()
Get the current configuration. Whether or not this configuration is in sync with the backing data source is up to the implementation, seereload()
. The value returned by this method may be the result of merging multiple objects together. As a result, mutations to this object may not be visible to other readers and are not permitted. For cases where mutation and/or persistence of changes is required seeWriteableDao.getWriteableConfig()
.
-
reload
void reload()
Instructs the DAO to reload the configuration from the backing data source immediately. Whether or not the config actually gets reloaded is up to the implementation as it may already be up to date. However invoking this method should guarantee that a subsequent call togetReadOnlyConfig()
yields the up to date configuration.
-
-