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.
-
ArticleCache(int, int)
- Constructor.
-
addArticle(NewsDbArticle, NewsDbGroup, int)
- Add an article by group and number.
-
addArticle(NewsDbArticle, String)
- Add an article by message-id.
-
getArticle(NewsDbGroup, int)
- Get an article by group and number.
-
getArticle(String)
- Get an article by message-id.
ArticleCache
public ArticleCache(int aCacheSize,
int maxArtSize)
- Constructor.
- Parameters:
- aCacheSize - maximum size of the cache
- maxArtSize - maximum-size article to cache
getArticle
public NewsDbArticle getArticle(NewsDbGroup group,
int artNum)
- Get an article by group and number.
getArticle
public NewsDbArticle getArticle(String messageId)
- Get an article by message-id.
addArticle
public void addArticle(NewsDbArticle article,
NewsDbGroup group,
int artNum)
- Add an article by group and number.
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