privatestaticARC<String,SearchEvent>lastEvents=newConcurrentARC<String,SearchEvent>(1000,Runtime.getRuntime().availableProcessors()*4);// a cache for objects from this class: re-use old search requests
publicstaticfinallongeventLifetime=600000;// the time an event will stay in the cache, 10 Minutes
privatestaticConcurrentHashMap<String,SearchEvent>lastEvents=newConcurrentHashMap<String,SearchEvent>();// a cache for objects from this class: re-use old search requests
publicstaticfinallongeventLifetimeBigMem=600000;// the time an event will stay in the cache when available memory is high, 10 Minutes
publicstaticfinallongeventLifetimeMediumMem=60000;// the time an event will stay in the cache when available memory is medium, 1 Minute
publicstaticfinallongeventLifetimeShortMem=10000;// the time an event will stay in the cache when memory is low, 10 seconds