All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Acme.Nnrpd.ArticleCache

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

public class ArticleCache
extends Object
A cache for netnews database articles.

Fetch the software.
Fetch the entire Acme package.


Constructor Index

 o ArticleCache(int, int)
Constructor.

Method Index

 o addArticle(NewsDbArticle, NewsDbGroup, int)
Add an article by group and number.
 o addArticle(NewsDbArticle, String)
Add an article by message-id.
 o getArticle(NewsDbGroup, int)
Get an article by group and number.
 o getArticle(String)
Get an article by message-id.

Constructors

 o ArticleCache
 public ArticleCache(int aCacheSize,
                     int maxArtSize)
Constructor.

Parameters:
aCacheSize - maximum size of the cache
maxArtSize - maximum-size article to cache

Methods

 o getArticle
 public NewsDbArticle getArticle(NewsDbGroup group,
                                 int artNum)
Get an article by group and number.

 o getArticle
 public NewsDbArticle getArticle(String messageId)
Get an article by message-id.

 o addArticle
 public void addArticle(NewsDbArticle article,
                        NewsDbGroup group,
                        int artNum)
Add an article by group and number.

 o addArticle
 public void addArticle(NewsDbArticle article,
                        String messageId)
Add an article by message-id.


All Packages  Class Hierarchy  This Package  Previous  Next  Index

ACME Java  ACME Labs