|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectice.net.CacheManagerSettings
The CacheManagerSettings class specifies settings for a
CacheManager.
| Constructor Summary | |
CacheManagerSettings()
Constructs a CacheManagerSettings object. |
|
| Method Summary | |
boolean |
equals(Object object)
|
int |
getCacheExpirationBuffer()
Gets the cache expiration buffer in seconds of this CacheManagerSettings. |
static int |
getDefaultCacheExpirationBuffer()
Returns the current int value of the
ice.net.cacheExpirationBuffer property. |
void |
resetToDefault()
Resets the settings of current instance to the default settings. |
void |
setAlwaysRevalidate(boolean alwaysRevalidate)
Sets this CacheManagerSettings' boolean
indicating to "always revalidate" to the specified
alwaysRevalidate. |
void |
setCacheExpirationBuffer(int cacheExpirationBuffer)
Sets the cache expiration buffer in seconds of this CacheManagerSettings to the specified
cacheExpirationBuffer. |
static void |
setDefaultAlwaysRevalidate(boolean alwaysRevalidate)
Sets the default value of the boolean indicating to
"always revalidate" to the specified alwaysRevalidate. |
static void |
setDefaultCacheExpirationBuffer(int cacheExpirationBuffer)
Sets the default value of the cache expiration buffer in seconds to the specified cacheExpirationBuffer. |
static void |
setDefaultPersistPrivateResponses(boolean persistPrivateResponses)
Sets the default value of the boolean indicating to
persist private responses to the specified
peristPrivateResponses. |
void |
setPersistPrivateResponses(boolean persistPrivateResponses)
|
boolean |
shouldAlwaysRevalidate()
Returns whether or not the CacheManager to be created
using this CacheManagerSettings should always
revalidate. |
static boolean |
shouldDefaultAlwaysRevalidate()
Returns the current boolean value of the
ice.net.alwaysRevalidate property. |
static boolean |
shouldDefaultPersistPrivateResponses()
Returns the current boolean value of the
ice.net.persistPrivateResponses property. |
boolean |
shouldPersistPrivateResponses()
Returns whether or not the CacheManager to be created
using this CacheManagerSettings persists private
responses. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CacheManagerSettings()
Constructs a CacheManagerSettings object.
| Method Detail |
public boolean equals(Object object)
public int getCacheExpirationBuffer()
Gets the cache expiration buffer in seconds of this
CacheManagerSettings.
setCacheExpirationBuffer(int)public static int getDefaultCacheExpirationBuffer()
Returns the current int value of the
ice.net.cacheExpirationBuffer property.
int value of the
ice.net.cacheExpirationBuffer property.setDefaultCacheExpirationBuffer(int)public void resetToDefault()
SettingsResets the settings of current instance to the default settings.
resetToDefault in interface Settingspublic void setAlwaysRevalidate(boolean alwaysRevalidate)
Sets this CacheManagerSettings' boolean
indicating to "always revalidate" to the specified
alwaysRevalidate.
When a new CacheManager is created through the
constructor with this CacheManager.CacheManager(CacheManagerSettings)CacheManagerSettings as parameter,
the method's
return value of the new CacheManager.shouldAlwaysRevalidate()CacheManager equals this
CacheManagerSettings'
method return value.shouldAlwaysRevalidate()
alwaysRevalidate - the new "always revalidate" boolean value.shouldAlwaysRevalidate(),
CacheManager.CacheManager(CacheManagerSettings),
CacheManager.shouldAlwaysRevalidate()public void setCacheExpirationBuffer(int cacheExpirationBuffer)
Sets the cache expiration buffer in seconds of this
CacheManagerSettings to the specified
cacheExpirationBuffer.
When a new CacheManager is created through the
constructor with this CacheManager.CacheManager(CacheManagerSettings)CacheManagerSettings as parameter,
the method's
return value of the new CacheManager.getCacheExpirationBuffer()CacheManager equals this
CacheManagerSettings'
method return value.getCacheExpirationBuffer()
cacheExpirationBuffer - the new cache expiration buffer in seconds.getCacheExpirationBuffer(),
CacheManager.CacheManager(CacheManagerSettings),
CacheManager.getCacheExpirationBuffer()public static void setDefaultAlwaysRevalidate(boolean alwaysRevalidate)
Sets the default value of the boolean indicating to
"always revalidate" to the specified alwaysRevalidate.
That is, every new instance of CacheManagerSettings will
have the boolean indicating to "always revalidate" set to
the specified alwaysRevalidate.
This method sets the ice.net.alwaysRevalidate property
for the current runtime.
alwaysRevalidate - the new "always revalidate" boolean value.shouldDefaultAlwaysRevalidate(),
shouldAlwaysRevalidate()public static void setDefaultCacheExpirationBuffer(int cacheExpirationBuffer)
Sets the default value of the cache expiration buffer in seconds to
the specified cacheExpirationBuffer.
That is, every new instance of CacheManagerSettings will
have the cache expiration buffer set to the specified
cacheExpirationBuffer.
This method sets the ice.net.cacheExpirationBuffer
property for the current runtime.
cacheExpirationBuffer - the new cache expiration buffer in seconds.getDefaultCacheExpirationBuffer(),
getCacheExpirationBuffer()public static void setDefaultPersistPrivateResponses(boolean persistPrivateResponses)
Sets the default value of the boolean indicating to
persist private responses to the specified
peristPrivateResponses.
That is, every new instance of CacheManagerSettings will
have the boolean indicating to persist private
responses set to the specified persistPrivateResponses.
This method sets the ice.net.persistPrivateResponses
property for the current runtime.
persistPrivateResponses - the new boolean value indicating the
persistence of private responses.shouldDefaultPersistPrivateResponses(),
shouldPersistPrivateResponses()public void setPersistPrivateResponses(boolean persistPrivateResponses)
persistPrivateResponses - public boolean shouldAlwaysRevalidate()
Returns whether or not the CacheManager to be created
using this CacheManagerSettings should always
revalidate.
true if the CacheManager to be
created should always revalidate, false if not.setAlwaysRevalidate(boolean)public static boolean shouldDefaultAlwaysRevalidate()
Returns the current boolean value of the
ice.net.alwaysRevalidate property.
boolean value of the
ice.net.alwaysRevalidate property.setDefaultAlwaysRevalidate(boolean)public static boolean shouldDefaultPersistPrivateResponses()
Returns the current boolean value of the
ice.net.persistPrivateResponses property.
boolean value of the
ice.net.persistPrivateResponses property.setDefaultPersistPrivateResponses(boolean)public boolean shouldPersistPrivateResponses()
Returns whether or not the CacheManager to be created
using this CacheManagerSettings persists private
responses.
true if the CacheManager to be
created persists private responses, false if
not.setPersistPrivateResponses(boolean)public String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||