de.uplanet.lucy.server.portalserver.browsercache
Class BrowserCacheManager

java.lang.Object
  extended by de.uplanet.lucy.server.portalserver.browsercache.BrowserCacheManager
All Implemented Interfaces:
de.uplanet.lucy.server.events.IServerEventListener

@Scriptable
public final class BrowserCacheManager
extends java.lang.Object
implements de.uplanet.lucy.server.events.IServerEventListener

Version:
$Revision: 78376 $

Field Summary
static java.lang.String SYSPROP_DISABLE_CACHE_MANAGER
          de.uplanet.lucy.server.portalserver.browsercache.disableCacheManager
 
Method Summary
 long getBaseUsn()
          Get the base update sequence number, i.e. the USN that will be returned for keys that are not explicitely managed by this cache.
 long getCurrentUsn()
          Get the current update sequence number, i.e. highest USN that is currently present in this cache.
static BrowserCacheManager getInstance()
          Get the cache manager instance.
 long getUsn(java.lang.String p_strKey)
          Get the update sequence number for the given key.
 long incrementAndGetCurrentUsn()
          Increment and get the current update sequence number, i.e.
 boolean isEnabled()
           
 void process(de.uplanet.lucy.server.events.IServerEvent p_evt)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYSPROP_DISABLE_CACHE_MANAGER

public static final java.lang.String SYSPROP_DISABLE_CACHE_MANAGER
de.uplanet.lucy.server.portalserver.browsercache.disableCacheManager

See Also:
Constant Field Values
Method Detail

getInstance

public static final BrowserCacheManager getInstance()
Get the cache manager instance.

Returns:
The cache manager instance.

getBaseUsn

public long getBaseUsn()
Get the base update sequence number, i.e. the USN that will be returned for keys that are not explicitely managed by this cache.

Returns:
The base update sequence number.

getCurrentUsn

public long getCurrentUsn()
Get the current update sequence number, i.e. highest USN that is currently present in this cache.

Returns:
The base update sequence number.

incrementAndGetCurrentUsn

public long incrementAndGetCurrentUsn()
Increment and get the current update sequence number, i.e. highest USN that is currently present in this cache.

Returns:
The base update sequence number.

getUsn

public long getUsn(java.lang.String p_strKey)
Get the update sequence number for the given key.

Parameters:
p_strKey - The key.
Returns:
The update sequence number for the given key.

isEnabled

public boolean isEnabled()

process

public void process(de.uplanet.lucy.server.events.IServerEvent p_evt)
Specified by:
process in interface de.uplanet.lucy.server.events.IServerEventListener


Last updated: 2011-01-27
Copyright 2000-2010 United Planet. All Rights Reserved.