Package java.lang.ref

Examples of java.lang.ref.ReferenceQueue$Null


        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


  }

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

    public MultiThreadedHttpConnectionManager() {

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

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

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

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

     */
    public Range createRange() {

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

        Range range = new RangeImpl(this);

        removeStaleRangeReferences();
View Full Code Here

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

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

  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

    }

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

        return _refQueue;
    }
View Full Code Here

  }

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

         * 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

Related Classes of java.lang.ref.ReferenceQueue$Null

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.