com.sun.syndication.fetcher.impl
Class LinkedHashMapFeedInfoCache

java.lang.Object
  extended by com.sun.syndication.fetcher.impl.HashMapFeedInfoCache
      extended by com.sun.syndication.fetcher.impl.LinkedHashMapFeedInfoCache
All Implemented Interfaces:
FeedFetcherCache, java.io.Serializable

public class LinkedHashMapFeedInfoCache
extends HashMapFeedInfoCache

An implementation of the FeedFetcherCache interface.

Unlike the HashMapFeedInfoCache this implementation will not grow unbound

Author:
Javier Kohen, Nick Lothian
See Also:
Serialized Form

Constructor Summary
LinkedHashMapFeedInfoCache()
          Constructor for HashMapFeedInfoCache
 
Method Summary
protected  java.util.Map createInfoCache()
           
static FeedFetcherCache getInstance()
          Get the global instance of the cache
 int getMaxEntries()
           
 void setMaxEntries(int maxEntries)
           
 
Methods inherited from class com.sun.syndication.fetcher.impl.HashMapFeedInfoCache
get, getFeedInfo, getInfoCache, put, setFeedInfo, setInfoCache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkedHashMapFeedInfoCache

public LinkedHashMapFeedInfoCache()

Constructor for HashMapFeedInfoCache

Only use this if you want multiple instances of the cache. Usually getInstance() is more appropriate.

See Also:
getInstance()
Method Detail

getInstance

public static final FeedFetcherCache getInstance()
Get the global instance of the cache

Returns:
an implementation of FeedFetcherCache

createInfoCache

protected java.util.Map createInfoCache()
Overrides:
createInfoCache in class HashMapFeedInfoCache

getMaxEntries

public final int getMaxEntries()

setMaxEntries

public final void setMaxEntries(int maxEntries)


Copyright © 2004-2006 Sun Microsystems. All Rights Reserved.