Examples of RwLockHolder


Examples of org.apache.jcs.utils.locking.RwLockHolder

            // Take a snapshot of the hashtable.
            Map.Entry[] entries = ( Map.Entry[] ) ht.entrySet().toArray( new Map.Entry[0] );
//p("RwLockHolder garbage collecting...");
            for ( int i = 0; i < entries.length; i++ )
            {
                RwLockHolder holder = ( RwLockHolder ) entries[i].getValue();
                if ( holder.removable( now ) )
                {
                    Object key = entries[i].getKey();
                    synchronized ( ht )
                    {
                        holder = ( RwLockHolder ) ht.get( key );
                        // holder cannot possibly be null as this should be the only thread removing them.
                        if ( holder.removable( now ) )
                        {
                            ht.remove( key );
                            /*
                             * p("removing key=" + key + ", now=" + now + ", holder.lastInactiveTime="
                             * + holder.lastInactiveTime);
View Full Code Here

Examples of org.apache.stratum.jcs.utils.locking.RwLockHolder

            // Take a snapshot of the hashtable.
            Map.Entry[] entries = ( Map.Entry[] ) ht.entrySet().toArray( new Map.Entry[0] );
//p("RwLockHolder garbage collecting...");
            for ( int i = 0; i < entries.length; i++ )
            {
                RwLockHolder holder = ( RwLockHolder ) entries[i].getValue();
                if ( holder.removable( now ) )
                {
                    Object key = entries[i].getKey();
                    synchronized ( ht )
                    {
                        holder = ( RwLockHolder ) ht.get( key );
                        // holder cannot possibly be null as this should be the only thread removing them.
                        if ( holder.removable( now ) )
                        {
                            ht.remove( key );
                            /*
                             * p("removing key=" + key + ", now=" + now + ", holder.lastInactiveTime="
                             * + holder.lastInactiveTime);
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.