Platform SDK Java 8.5 API Reference

com.genesyslab.platform.applicationblocks.com.cache
Class DefaultConfCachePolicy

java.lang.Object
  extended by com.genesyslab.platform.applicationblocks.com.cache.DefaultConfCachePolicy
All Implemented Interfaces:
IConfCachePolicy

public final class DefaultConfCachePolicy
extends java.lang.Object
implements IConfCachePolicy

The default configuration cache policy.


Constructor Summary
DefaultConfCachePolicy()
           
 
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.
 void setReturnCopies(boolean value)
          Specifies whether the cache should return copies of stored objects or the objects themselves.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConfCachePolicy

public DefaultConfCachePolicy()
Method Detail

getCacheOnCreate

public 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.

Specified by:
getCacheOnCreate in interface IConfCachePolicy
Parameters:
obj - This parameter is ignored
Returns:
false for all objects

getTrackUpdates

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

Specified by:
getTrackUpdates in interface IConfCachePolicy
Parameters:
obj - This parameter is ignored
Returns:
true for all objects

getRemoveOnDelete

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

Specified by:
getRemoveOnDelete in interface IConfCachePolicy
Parameters:
obj - This parameter is ignored
Returns:
true for all objects

getReturnCopies

public boolean getReturnCopies()
Specifies whether the cache should return copies of stored objects or the objects themselves. This property returns "false" by default.

Specified by:
getReturnCopies in interface IConfCachePolicy
Returns:
true if cache should clone objects on retrieve

setReturnCopies

public void setReturnCopies(boolean value)
Specifies whether the cache should return copies of stored objects or the objects themselves. This property is "false" by default.

Parameters:
value - new property value

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.