public interface CTBCacheConfig extends Serializable
Modifier and Type | Method and Description |
---|---|
String |
getCacheName()
Retrieves the name of the cache.
|
String |
getCTBCacheLoaderClassName()
Gets the name of the
CTBCacheLoader class for this cache. |
long |
getIdleTime()
Gets the idle time for objects in the cache.
|
long |
getTimeToLive()
Gets the maximum time for which objects can remain in the cache before
being invalidated.
|
boolean |
isDistributed()
Returns a boolean value that indicates if the cache is distributed.
|
boolean |
isPreLoadEnabled()
Returns a boolean value that indicates if the cache is pre-loaded when it
is created.
|
void |
setCacheName(String cacheName)
Sets the name of the cache.
|
void |
setCTBCacheLoaderClassName(String loader)
Sets the name of the
CTBCacheLoader class for this cache. |
void |
setDistributed(boolean flag)
Sets the flag that specifies if the cache is to be distributed.
|
void |
setIdleTime(long value)
Sets the idle time for objects in the cache.
|
void |
setPreLoadEnabled(boolean enabled)
Sets the flag that indicated if the cache is pre-loaded when it is
created.
|
void |
setTimeToLive(long value)
Sets the maximum time for which objects can remain in the cache before
being
invalidated for objects in the cache.
|
void setCacheName(String cacheName)
cacheName
- Name of the cache.String getCacheName()
void setDistributed(boolean flag)
flag
- true
if the cache is to be distributed, otherwise
false
.boolean isDistributed()
true
if the cache is to be distributed, otherwise
false
.void setTimeToLive(long value)
value
- Time to live in seconds.long getTimeToLive()
void setIdleTime(long value)
value
- Idle Time in seconds.long getIdleTime()
void setPreLoadEnabled(boolean enabled)
enabled
- true
if the cache is pre-load enabled, otherwise
false
.boolean isPreLoadEnabled()
void setCTBCacheLoaderClassName(String loader)
CTBCacheLoader
class for this cache.
CTBCacheLoader
is an abstract class that must be extended.loader
- Full name of the cache loader class for this cache.String getCTBCacheLoaderClassName()
CTBCacheLoader
class for this cache.
CTBCacheLoader
is an abstract class that must be extended.HDR Glossary HDR Concept Lists HDR Exceptions HDR Programmer's Guide HDR Implementation Guide HDR Profile Options
Copyright © 2016, 2018, Oracle. All rights reserved