All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Acme.Nnrpd.OverviewCache

java.lang.Object
   |
   +----Acme.Nnrpd.OverviewCache

public class OverviewCache
extends Object
A cache for netnews overview entries.

Fetch the software.
Fetch the entire Acme package.


Constructor Index

 o OverviewCache(int)
Constructor.

Method Index

 o addEntry(String[], NewsDbGroup, int)
Add an overview entry by group and number.
 o getEntry(NewsDbGroup, int)
Get an overview entry by group and number.
 o getLastTime(NewsDbGroup)
Get the last time we cached entries for this group.
 o setLastTime(NewsDbGroup)
Set the last time we cached entries for this group.

Constructors

 o OverviewCache
 public OverviewCache(int cacheSize)
Constructor.

Parameters:
cacheSize - maximum size of the cache

Methods

 o getLastTime
 public long getLastTime(NewsDbGroup group)
Get the last time we cached entries for this group.

 o setLastTime
 public void setLastTime(NewsDbGroup group)
Set the last time we cached entries for this group.

 o getEntry
 public String[] getEntry(NewsDbGroup group,
                          int artNum)
Get an overview entry by group and number.

 o addEntry
 public void addEntry(String entry[],
                      NewsDbGroup group,
                      int artNum)
Add an overview entry by group and number.


All Packages  Class Hierarchy  This Package  Previous  Next  Index

ACME Java  ACME Labs