|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=TYPE) @Retention(value=RUNTIME) public @interface CacheTuning
Specify cache tuning for a specific entity type.
If this is not specified then the system default settings are used.
Optional Element Summary | |
---|---|
int |
maxIdleSecs
The maximum time (in seconds) that a cache entry is allowed to stay in the cache when it has not been accessed. |
int |
maxSecsToLive
The maximum time (in seconds) a cache entry is allowed to stay in the cache. |
int |
maxSize
The maximum size for the cache. |
public abstract int maxSize
This defaults to 0 which means unlimited.
public abstract int maxIdleSecs
This defaults to 0 which means unlimited.
public abstract int maxSecsToLive
This is not generally required as the cache entries are automatically evicted when related data changes are committed.
This defaults to 0 which means unlimited.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |