Package org.hibernate.search.util

Examples of org.hibernate.search.util.SoftLimitMRUCache$KeyedSoftReference


   */
  private static final int HARD_TO_SOFT_RATIO = 15;

  public void initialize(Properties properties) {
    int size = ConfigurationParseHelper.getIntValue( properties, SIZE, DEFAULT_SIZE );
    cache = new SoftLimitMRUCache( size, size * HARD_TO_SOFT_RATIO );
  }
View Full Code Here


   */
  public CachingWrapperFilter(Filter filter, int size) {
    this.filter = filter;
    final int softRefSize = size * HARD_TO_SOFT_RATIO;
    log.debug( "Initialising SoftLimitMRUCache with hard ref size of {} and a soft ref of {}", size, softRefSize );
    this.cache = new SoftLimitMRUCache( size, softRefSize );
 
View Full Code Here

      throw new SearchException(
          "Unable to parse " + SIZE + ": " + properties.getProperty( SIZE, DEFAULT_SIZE ), nfe
      );
    }

    cache = new SoftLimitMRUCache( size );
  }
View Full Code Here

  private SoftLimitMRUCache cache;
  private static final String SIZE = Environment.FILTER_CACHING_STRATEGY + ".size";

  public void initialize(Properties properties) {
    int size = ConfigurationParseHelper.getIntValue( properties, SIZE, DEFAULT_SIZE );
    cache = new SoftLimitMRUCache( size );
  }
View Full Code Here

   * @param filter Filter to cache results of
   */
  public CachingWrapperFilter(Filter filter, int size) {
    this.filter = filter;
    log.debug( "Initialising SoftLimitMRUCache with hard ref size of {}", size );
    this.cache = new SoftLimitMRUCache( size );
 
View Full Code Here

   */
  private static final int HARD_TO_SOFT_RATIO = 15;

  public void initialize(Properties properties) {
    int size = ConfigurationParseHelper.getIntValue( properties, SIZE, DEFAULT_SIZE );
    cache = new SoftLimitMRUCache( size, size * HARD_TO_SOFT_RATIO );
  }
View Full Code Here

   */
  public CachingWrapperFilter(Filter filter, int size) {
    this.filter = filter;
    final int softRefSize = size * HARD_TO_SOFT_RATIO;
    log.debug( "Initialising SoftLimitMRUCache with hard ref size of {} and a soft ref of {}", size, softRefSize );
    this.cache = new SoftLimitMRUCache( size, softRefSize );
 
View Full Code Here

TOP

Related Classes of org.hibernate.search.util.SoftLimitMRUCache$KeyedSoftReference

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.