Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.openxri.resolve
Class Cache

    java.lang.Object
      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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005-2009. All Rights Reserved.