org.rometools.fetcher.impl
Class LinkedHashMapFeedInfoCache

java.lang.Object
  extended by org.rometools.fetcher.impl.HashMapFeedInfoCache
      extended by org.rometools.fetcher.impl.LinkedHashMapFeedInfoCache
All Implemented Interfaces:
Serializable, FeedFetcherCache

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 Only use this if you want multiple instances of the cache.
 
Method Summary
protected  Map createInfoCache()
           
static FeedFetcherCache getInstance()
          Get the global instance of the cache
 int getMaxEntries()
           
 void setMaxEntries(int maxEntries)
           
 
Methods inherited from class org.rometools.fetcher.impl.HashMapFeedInfoCache
clear, get, getFeedInfo, getInfoCache, put, remove, 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 Map createInfoCache()
Overrides:
createInfoCache in class HashMapFeedInfoCache

getMaxEntries

public final int getMaxEntries()

setMaxEntries

public final void setMaxEntries(int maxEntries)


Copyright © 2004-2013 ROME Project. All Rights Reserved.