public class NavigationCache extends Object
Modifier and Type | Field and Description |
---|---|
private org.apache.jcs.JCS |
cache
The cache.
|
static com.gentics.cr.CRResolvableBean |
CACHED_NULL
Object representing a null entry in the cache
|
private Set<String> |
cachedKeys
The cached keys.
|
static String |
CACHEZONE_KEY
Key for the cache zone.
|
private com.gentics.cr.CRConfig |
crConf
The cr conf.
|
private static NavigationCache |
instance
The instance.
|
private static org.apache.log4j.Logger |
log
The Constant log.
|
private static int |
MIN_SCHEDULE_TIME
The min schedule time.
|
private static String |
PROPERTY_FILENAME
The Constant PROPERTY_FILENAME.
|
private ScheduledExecutorService |
scheduler
The scheduler.
|
private Long |
scheduleTime
The schedule time.
|
private static int |
SECONDS_BEFORE_CACHE
The seconds before cache.
|
private static int |
THREADS
The cores.
|
Modifier | Constructor and Description |
---|---|
private |
NavigationCache()
Instantiates a new navigation cache.
|
Modifier and Type | Method and Description |
---|---|
com.gentics.cr.CRResolvableBean |
fetchAndCacheNavigationObject(String startFolder,
String childfilter,
com.gentics.cr.RequestProcessor rp,
com.gentics.cr.CRRequest req)
Fetch and cache navigation object.
|
static NavigationCache |
get()
Gets the Navigation Cache instance.
|
private com.gentics.cr.CRResolvableBean |
getCachedNavigationObject(String cacheKey)
Gets the cached navigation object.
|
com.gentics.cr.CRResolvableBean |
getCachedNavigationObject(String startFolder,
String childFilter)
Gets the cached navigation object.
|
private static String |
getCacheKey(String startFolder,
String childFilter)
Gets the cache key.
|
public static final com.gentics.cr.CRResolvableBean CACHED_NULL
private static final org.apache.log4j.Logger log
private static int MIN_SCHEDULE_TIME
private static int SECONDS_BEFORE_CACHE
private static int THREADS
public static final String CACHEZONE_KEY
private static final String PROPERTY_FILENAME
private static NavigationCache instance
private org.apache.jcs.JCS cache
private Long scheduleTime
private ScheduledExecutorService scheduler
private com.gentics.cr.CRConfig crConf
public static NavigationCache get()
public com.gentics.cr.CRResolvableBean getCachedNavigationObject(String startFolder, String childFilter)
startFolder
- the start folderchildFilter
- the child filterprivate com.gentics.cr.CRResolvableBean getCachedNavigationObject(String cacheKey)
cacheKey
- the cache keypublic com.gentics.cr.CRResolvableBean fetchAndCacheNavigationObject(String startFolder, String childfilter, com.gentics.cr.RequestProcessor rp, com.gentics.cr.CRRequest req)
startFolder
- the start folderchildfilter
- the childfilterrp
- the rpreq
- the reqCopyright © 2014 Gentics Software GmbH. All Rights Reserved.