Examples of SoftLimitMRUCache


Examples of org.hibernate.internal.util.collections.SoftLimitMRUCache

        SoftLimitMRUCache.DEFAULT_SOFT_REF_COUNT
    );

    this.factory = factory;
    this.sqlParamMetadataCache = new SimpleMRUCache( maxStrongReferenceCount );
    this.planCache = new SoftLimitMRUCache( maxStrongReferenceCount, maxSoftReferenceCount );
  }
View Full Code Here

Examples of org.hibernate.internal.util.collections.SoftLimitMRUCache

        SoftLimitMRUCache.DEFAULT_SOFT_REF_COUNT
    );

    this.factory = factory;
    this.sqlParamMetadataCache = new SimpleMRUCache( maxStrongReferenceCount );
    this.planCache = new SoftLimitMRUCache( maxStrongReferenceCount, maxSoftReferenceCount );
  }
View Full Code Here

Examples of org.hibernate.internal.util.collections.SoftLimitMRUCache

        SoftLimitMRUCache.DEFAULT_SOFT_REF_COUNT
    );

    this.factory = factory;
    this.sqlParamMetadataCache = new SimpleMRUCache( maxStrongReferenceCount );
    this.planCache = new SoftLimitMRUCache( maxStrongReferenceCount, maxSoftReferenceCount );
  }
View Full Code Here

Examples of org.hibernate.internal.util.collections.SoftLimitMRUCache

        SoftLimitMRUCache.DEFAULT_SOFT_REF_COUNT
    );

    this.factory = factory;
    this.sqlParamMetadataCache = new SimpleMRUCache( maxStrongReferenceCount );
    this.planCache = new SoftLimitMRUCache( maxStrongReferenceCount, maxSoftReferenceCount );
  }
View Full Code Here

Examples of org.hibernate.internal.util.collections.SoftLimitMRUCache

        SoftLimitMRUCache.DEFAULT_SOFT_REF_COUNT
    );

    this.factory = factory;
    this.sqlParamMetadataCache = new SimpleMRUCache( maxStrongReferenceCount );
    this.planCache = new SoftLimitMRUCache( maxStrongReferenceCount, maxSoftReferenceCount );
  }
View Full Code Here

Examples of org.hibernate.search.util.SoftLimitMRUCache

   */
  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

Examples of org.hibernate.search.util.SoftLimitMRUCache

   */
  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

Examples of org.hibernate.search.util.SoftLimitMRUCache

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

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

Examples of org.hibernate.search.util.SoftLimitMRUCache

  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

Examples of org.hibernate.search.util.SoftLimitMRUCache

   * @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
TOP
Copyright © 2018 www.massapi.com. 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.