Platform SDK Java 8.5 API Reference

com.genesyslab.platform.applicationblocks.com.cache
Interface IConfCachePolicy

All Known Implementing Classes:
DefaultConfCachePolicy

public interface IConfCachePolicy

The interface to be implemented when defining a cache policy.


Method Summary
 boolean getCacheOnCreate(ICfgObject obj)
          Determines if the passed object should be stored in the cache upon receiving notification of its creation in the configuration server.
 boolean getRemoveOnDelete(ICfgObject obj)
          Determines if the passed object should be deleted from the cache if it is deleted from the configuration server.
 boolean getReturnCopies()
          Specifies whether the cache should return copies of stored objects or the objects themselves.
 boolean getTrackUpdates(ICfgObject obj)
          Determines if the passed object's state should be synchronized with the configuration server upon receiving an update.
 

Method Detail

getReturnCopies

boolean getReturnCopies()
Specifies whether the cache should return copies of stored objects or the objects themselves.

Returns:
true if cache should clone objects on retrieve

getCacheOnCreate

boolean getCacheOnCreate(ICfgObject obj)
Determines if the passed object should be stored in the cache upon receiving notification of its creation in the configuration server.

Parameters:
obj - The configuration object
Returns:
true if the object should be cached, false otherwise

getTrackUpdates

boolean getTrackUpdates(ICfgObject obj)
Determines if the passed object's state should be synchronized with the configuration server upon receiving an update.

Parameters:
obj - The configuration object
Returns:
true if the object should be updated, false otherwise

getRemoveOnDelete

boolean getRemoveOnDelete(ICfgObject obj)
Determines if the passed object should be deleted from the cache if it is deleted from the configuration server.

Parameters:
obj - The Configuration object
Returns:
true if the object should be removed, false otherwise

Platform SDK Java 8.5 API Reference

Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.