|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.Server.CacheController
public static final class Server.CacheController
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.
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 |
|---|
public static int getMaxCaches()
public static void setMaxCaches(int n)
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||