public class NamedValueCacheImpl extends Object implements NamedValueCache
NamedValueCache
used to cache NamedValue
objectsConstructor and Description |
---|
NamedValueCacheImpl(DataProvider dataProvider,
SdkTaskScheduler scheduler)
Initializes a new instance of
NamedValueCacheImpl |
Modifier and Type | Method and Description |
---|---|
NamedValue |
getNamedValue(int id)
Gets the
NamedValue specified by the provided id |
boolean |
isValueDefined(int id)
Determines if the specified
id exists in the current cache instance |
public NamedValueCacheImpl(DataProvider dataProvider, SdkTaskScheduler scheduler)
NamedValueCacheImpl
dataProvider
- - the DataProvider
which is used to retrieve NamedValue
scheduler
- - the SdkTaskScheduler
used to perform repeating cache taskspublic NamedValue getNamedValue(int id)
NamedValue
specified by the provided id
getNamedValue
in interface NamedValueCache
id
- - the id
of the NamedValue
to retrieve.NamedValue
specified by the provided id
public boolean isValueDefined(int id)
id
exists in the current cache instanceisValueDefined
in interface NamedValueCache
id
- - the id
that should be checkedtrue
if the value is defined; otherwise false
Copyright © 2016–2025. All rights reserved.