|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CacheConfiguration
Information on how a cache is configured.
A Cache may be constructed by CacheManager using a configuration instance.
At runtime it is used by javax.cache to decide how to behave. For example the behaviour of put
will vary depending on whether the cache is write-through.
Finally, a cache makes it's configuration visible via this interface.
| Method Summary | |
|---|---|
boolean |
isReadThrough()
Whether the cache is a read-through cache. |
boolean |
isStatisticsEnabled()
Checks whether statistics collection is enabled in this cache. |
boolean |
isStoreByValue()
Whether storeByValue (true) or storeByReference (false). |
boolean |
isTransactionEnabled()
Checks whether transactions are enabled for this cache. |
boolean |
isWriteThrough()
Whether the cache is a write-through cache. |
void |
setReadThrough(boolean readThrough)
Sets whether the cache is a read-through cache. |
void |
setStatisticsEnabled(boolean enableStatistics)
Sets whether statistics gathering is enabled on this cache. |
void |
setStoreByValue(boolean storeByValue)
Sets whether the cache is store-by-value cache. |
void |
setTransactionEnabled(boolean enableTransactions)
Sets whether transactions are enabled for this cache |
void |
setWriteThrough(boolean writeThrough)
Whether the cache is a write-through cache. |
| Method Detail |
|---|
boolean isReadThrough()
void setReadThrough(boolean readThrough)
readThrough - the value for readThrough
IllegalStateException - if the configuration can no longer be changedboolean isWriteThrough()
void setWriteThrough(boolean writeThrough)
writeThrough - set to true for a write-through cacheboolean isStoreByValue()
void setStoreByValue(boolean storeByValue)
storeByValue - the value for storeByValue
IllegalStateException - if the configuration can no longer be changed
InvalidConfigurationException - if the cache does not support store by referenceisStoreByValue()boolean isStatisticsEnabled()
void setStatisticsEnabled(boolean enableStatistics)
enableStatistics - true fo enable statistics, false to disableboolean isTransactionEnabled()
void setTransactionEnabled(boolean enableTransactions)
enableTransactions - true fo enable transactions, false to disable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||