IConfCacheStorage
public final class DefaultConfCacheStorage extends java.lang.Object implements IConfCacheStorage
Constructor | Description |
---|---|
DefaultConfCacheStorage() |
Modifier and Type | Method | Description |
---|---|---|
void |
add(ICfgObject obj) |
Adds the specified object into the cache.
|
void |
clear() |
Removes all items in storage.
|
boolean |
remove(ICfgObject obj) |
Removes the specified configuration object from the storage.
|
<T extends ICfgObject> |
retrieve(java.lang.Class<T> cls) |
Retrieves a list of all objects in the storage.
|
<T extends ICfgObject> |
retrieve(java.lang.Class<T> cls,
java.lang.Object helper) |
Retrieves a list of objects in storage utilizing a "helper"
parameter.
|
void |
update(ICfgObject obj) |
Updates an existing configuration object in the storage
with the passed copy.
|
public void add(ICfgObject obj)
add
in interface IConfCacheStorage
obj
- object to addjava.lang.IllegalArgumentException
- The object being added
has not been saved in the configuration server
or the object being added
is already in the cache (dbid and type are used
for the purposes of determining equality)public void update(ICfgObject obj)
update
in interface IConfCacheStorage
obj
- The new version of a cached configuration objectpublic boolean remove(ICfgObject obj)
remove
in interface IConfCacheStorage
obj
- The configuration object to removepublic void clear()
clear
in interface IConfCacheStorage
public <T extends ICfgObject> java.lang.Iterable<T> retrieve(java.lang.Class<T> cls)
retrieve
in interface IConfCacheStorage
T
- The type of object in the resulting listcls
- class of objects to be retrievedpublic <T extends ICfgObject> java.lang.Iterable<T> retrieve(java.lang.Class<T> cls, java.lang.Object helper)
retrieve
in interface IConfCacheStorage
T
- The type of object in the resulting listcls
- class of objects to be retrievedhelper
- can be either "null" to retrieve all objects,
or CfgObjectType to retrieve by typeSend comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.