Package org.hibernate.util

Examples of org.hibernate.util.SoftLimitMRUCache


 

  public BitSet bits(IndexReader reader) throws IOException {
    if (cache == null) {
      log.debug("Initialising SoftLimitMRUCache with hard ref size of {}", size);
      cache = new SoftLimitMRUCache(size);
    }

    //memory barrier ensure cache == null will not always stay true on concurrent threads
    synchronized (cache) { // check cache
      BitSet cached = (BitSet) cache.get(reader);
View Full Code Here


        SoftLimitMRUCache.DEFAULT_SOFT_REF_COUNT
    );

    this.factory = factory;
    this.sqlParamMetadataCache = new SimpleMRUCache( maxStrongReferenceCount );
    this.planCache = new SoftLimitMRUCache( maxStrongReferenceCount, maxSoftReferenceCount );
  }
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 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

        factory.getProperties(),
        SoftLimitMRUCache.DEFAULT_SOFT_REF_COUNT
    );
    this.factory = factory;
    this.sqlParamMetadataCache = new SimpleMRUCache( maxStrongReferenceCount );
    this.planCache = new SoftLimitMRUCache( maxStrongReferenceCount, maxSoftReferenceCount );

  }
View Full Code Here

 

  public BitSet bits(IndexReader reader) throws IOException {
    if (cache == null) {
      log.debug("Initialising SoftLimitMRUCache with hard ref size of {}", size);
      cache = new SoftLimitMRUCache(size);
    }

    synchronized (cache) { // check cache
      BitSet cached = (BitSet) cache.get(reader);
      if (cached != null) {
View Full Code Here

        SoftLimitMRUCache.DEFAULT_SOFT_REF_COUNT
    );

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

TOP

Related Classes of org.hibernate.util.SoftLimitMRUCache

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.