org.openxri.resolve
Class Cache

java.lang.Object
  extended by org.openxri.resolve.Cache

public class Cache
extends java.lang.Object

This class provides a cache for XRI resolutions

Author:
steveg, =chetan

Nested Class Summary
 class Cache.CachedValue
          This class provides an externally visible representation of the result of searching the cache.
 
Method Summary
 int getMaxSize()
          Gets the maximum size of the cache
 int getNumNodes()
          Returns the number of nodes in the cache
 void setMaxSize(int nVal)
          Sets the maximum size of the cache
 void stuff(XRIAuthority oAuth, XRDS oDescriptors)
          Adds the descriptors associated with an authority to the cache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNumNodes

public int getNumNodes()
Returns the number of nodes in the cache


setMaxSize

public void setMaxSize(int nVal)
Sets the maximum size of the cache


getMaxSize

public int getMaxSize()
Gets the maximum size of the cache


stuff

public void stuff(XRIAuthority oAuth,
                  XRDS oDescriptors)
Adds the descriptors associated with an authority to the cache

Parameters:
oAuth - - The Authority whose descriptors to store
oDescriptors - - The descriptors of the subsegments in oAuth


Copyright © 2005-2012. All Rights Reserved.