Examples of ReferenceQueue


Examples of java.lang.ref.ReferenceQueue

        SecureAction action)
    {
        m_context = context;
        m_permissionInfos = permissionInfos;
        m_cache = new HashMap();
        m_queue = new ReferenceQueue();
        m_action = action;
        for (int i = 0; i < m_permissionInfos.length; i++)
        {
            if (m_permissionInfos[i].getType().equals(
                AllPermission.class.getName()))
View Full Code Here

Examples of java.lang.ref.ReferenceQueue

  }

  private void init() {
    this.strongRefCache = new LRUMap( strongRefCount );
    this.softRefCache = new LRUMap( softRefCount );
    this.referenceQueue = new ReferenceQueue();
  }
View Full Code Here

Examples of java.lang.ref.ReferenceQueue

    public MultiThreadedHttpConnectionManager() {

        this.referenceToHostConfig = Collections.synchronizedMap(new HashMap());
        this.connectionPool = new ConnectionPool();
       
        this.referenceQueue = new ReferenceQueue();

        new ReferenceQueueThread().start();
    }
View Full Code Here

Examples of java.lang.ref.ReferenceQueue

                                                     whatToShow,
                                                     filter,
                                                     entityReferenceExpansion);
        if (iterators == null) {
            iterators = new LinkedList();
            iteratorReferenceQueue = new ReferenceQueue();
        }

        removeStaleIteratorReferences();
        iterators.add(new WeakReference(iterator, iteratorReferenceQueue));
View Full Code Here

Examples of java.lang.ref.ReferenceQueue

     */
    public Range createRange() {

        if (ranges == null) {
            ranges = new LinkedList();
            rangeReferenceQueue = new ReferenceQueue();
        }

        Range range = new RangeImpl(this);

        removeStaleRangeReferences();
View Full Code Here

Examples of java.lang.ref.ReferenceQueue

        fTableSize = initialCapacity;
        fBuckets = new SREntry[fTableSize];
        fThreshold = (int)(fTableSize * loadFactor);
        fCount = 0;

        fReferenceQueue = new ReferenceQueue();
    }
View Full Code Here

Examples of java.lang.ref.ReferenceQueue

  private final Map<K, SoftValue<K,V>> internalMap =
    new HashMap<K, SoftValue<K,V>>();
  private final ReferenceQueue<?> rq;
 
  public SoftValueMap() {
    this(new ReferenceQueue());
  }
View Full Code Here

Examples of java.lang.ref.ReferenceQueue

    }

    final ReferenceQueue refQueue()
    {
        if (_refQueue == null)
            _refQueue = new ReferenceQueue();

        return _refQueue;
    }
View Full Code Here

Examples of java.lang.ref.ReferenceQueue

  }

  private void init() {
    this.strongRefCache = new LRUMap( strongRefCount );
    this.softRefCache = new LRUMap( softRefCount );
    this.referenceQueue = new ReferenceQueue();
  }
View Full Code Here

Examples of java.lang.ref.ReferenceQueue

         * deprecated {@link FileCleaner} is gone. The question is, whether
         * we want to support reuse of {@link FileCleaningTracker} instances,
         * which we should, IMO, not.
         */
        {
            theInstance.q = new ReferenceQueue();
            theInstance.trackers.clear();
            theInstance.exitWhenFinished = false;
            theInstance.reaper = null;
        }
       
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.