Platform SDK Java 8.5 API Reference

com.genesyslab.platform.applicationblocks.com
Class CachingConfServicePolicy

java.lang.Object
  extended by com.genesyslab.platform.applicationblocks.com.CachingConfServicePolicy
All Implemented Interfaces:
IConfServicePolicy

public final class CachingConfServicePolicy
extends java.lang.Object
implements IConfServicePolicy

The default policy for a configuration service which has caching enabled.


Constructor Summary
CachingConfServicePolicy()
           
 
Method Summary
 boolean getAttemptLinkResolutionThroughCache(CfgObjectType objectType)
          Determines whether link resolution should be attempted through the cache before querying the configuration server (link resolution refers to the automatic retrieval of configuration objects when certain properties are accessed).
 boolean getCacheOnRetrieve(ICfgObject obj)
          Determines whether the specified object should be cached upon being retrieved from the configuration server.
 boolean getCacheOnSave(ICfgObject obj)
          Determines whether the specified object should be cached upon being saved in the configuration server.
 boolean getOverwriteCachedVersionOnRetrieve(ICfgObject newObj)
          Determines whether an existing cached object should be overwritten if a newer copy is retrieved from configuration server.
 boolean getQueryCacheOnRetrieve(ICfgQuery query)
          Determines whether the cache should be queried before a retrieve operation is performed.
 boolean getQueryCacheOnRetrieveMultiple(ICfgQuery query)
          Determines whether the cache should be queried before a retrieve multiple operation is performed.
 boolean getValidateBeforeSave()
          Determines whether the properties of an object should be validated for correctness before a save operation is attempted.
 void setValidateBeforeSave(boolean value)
          Determines whether the properties of an object should be validated for correctness before a save operation is attempted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingConfServicePolicy

public CachingConfServicePolicy()
Method Detail

getQueryCacheOnRetrieve

public boolean getQueryCacheOnRetrieve(ICfgQuery query)
Determines whether the cache should be queried before a retrieve operation is performed.

Specified by:
getQueryCacheOnRetrieve in interface IConfServicePolicy
Parameters:
query - This parameter is ignored
Returns:
false for all queries

getQueryCacheOnRetrieveMultiple

public boolean getQueryCacheOnRetrieveMultiple(ICfgQuery query)
Determines whether the cache should be queried before a retrieve multiple operation is performed.

Specified by:
getQueryCacheOnRetrieveMultiple in interface IConfServicePolicy
Parameters:
query - This parameter is ignored
Returns:
false for all queries

getValidateBeforeSave

public boolean getValidateBeforeSave()
Determines whether the properties of an object should be validated for correctness before a save operation is attempted. True by default.

Specified by:
getValidateBeforeSave in interface IConfServicePolicy
Returns:
true if objects should be validated before save

setValidateBeforeSave

public void setValidateBeforeSave(boolean value)
Determines whether the properties of an object should be validated for correctness before a save operation is attempted. True by default.

Specified by:
setValidateBeforeSave in interface IConfServicePolicy
Parameters:
value - new value for the validation enabling property

getCacheOnRetrieve

public boolean getCacheOnRetrieve(ICfgObject obj)
Determines whether the specified object should be cached upon being retrieved from the configuration server.

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

getCacheOnSave

public boolean getCacheOnSave(ICfgObject obj)
Determines whether the specified object should be cached upon being saved in the configuration server.

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

getAttemptLinkResolutionThroughCache

public boolean getAttemptLinkResolutionThroughCache(CfgObjectType objectType)
Determines whether link resolution should be attempted through the cache before querying the configuration server (link resolution refers to the automatic retrieval of configuration objects when certain properties are accessed).

Specified by:
getAttemptLinkResolutionThroughCache in interface IConfServicePolicy
Parameters:
objectType - This parameter is ignored
Returns:
true for all object types

getOverwriteCachedVersionOnRetrieve

public boolean getOverwriteCachedVersionOnRetrieve(ICfgObject newObj)
Determines whether an existing cached object should be overwritten if a newer copy is retrieved from configuration server.

Specified by:
getOverwriteCachedVersionOnRetrieve in interface IConfServicePolicy
Parameters:
newObj - This parameter is ignored
Returns:
false for all objects

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.