Class SearcherLifetimeManager.PruneByAge

  extended by
All Implemented Interfaces:
Enclosing class:

public static final class SearcherLifetimeManager.PruneByAge
extends Object
implements SearcherLifetimeManager.Pruner

Simple pruner that drops any searcher older by more than the specified seconds, than the newest searcher.

Constructor Summary
SearcherLifetimeManager.PruneByAge(int maxAgeSec)
Method Summary
 boolean doPrune(int ageSec, IndexSearcher searcher)
          Return true if this searcher should be removed.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public SearcherLifetimeManager.PruneByAge(int maxAgeSec)
Method Detail


public boolean doPrune(int ageSec,
                       IndexSearcher searcher)
Description copied from interface: SearcherLifetimeManager.Pruner
Return true if this searcher should be removed.

Specified by:
doPrune in interface SearcherLifetimeManager.Pruner
ageSec - how long ago this searcher was recorded vs the most recently recorded searcher
searcher - Searcher

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.