com.starteam
Class Server.CacheController

java.lang.Object
  extended by com.starteam.Server.CacheController
Enclosing class:
Server

public static final class Server.CacheController
extends java.lang.Object

For each repository accessed via some Server object, we maintain a local cache that holds data fetched from the repository. Normally, when a given cache is no longer referenced by any Server object, the cache is discarded, freeing up memory used by the cached data objects. However, "server-oriented" applications, which open and close many Server connections on behalf of various clients, may benefit from keeping these local caches around even after they are no longer referenced by any Server object. This is especially true when MPX is enabled. CacheController allows an application to adjust the behavior of the SDK caching mechanisms as appropriate.

See Also:
Server.enableMPX()

Method Summary
static int getMaxCaches()
          Gets the maximum number of server caches.
static void setMaxCaches(int n)
          Sets the maximum number of server caches.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMaxCaches

public static int getMaxCaches()
Gets the maximum number of server caches.

Returns:
The maximum number of server caches that are permitted to remain in memory even after they are no longer referenced by any Server object.

setMaxCaches

public static void setMaxCaches(int n)
Sets the maximum number of server caches.

Parameters:
n - The maximum number of server caches that are permitted to remain in memory even after they are no longer referenced by any Server object.


StarTeam SDK 14.0, Build 21
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.