// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
packagede.anomic.search;
importjava.io.IOException;
importjava.util.Iterator;
importjava.util.TreeMap;
importjava.util.TreeSet;
importjava.util.concurrent.ConcurrentHashMap;
importde.anomic.crawler.ResultURLs;
importde.anomic.kelondro.text.Segment;
importde.anomic.yacy.yacySeedDB;
importde.anomic.yacy.logging.Log;
publicclassSearchEventCache{
protectedstaticConcurrentHashMap<String,SearchEvent>lastEvents=newConcurrentHashMap<String,SearchEvent>();// a cache for objects from this class: re-use old search requests
publicstaticfinallongeventLifetime=60000;// the time an event will stay in the cache, 1 Minute