Package net.sf.jiga.xtended.kernel.SpritesCacheManager

Examples of net.sf.jiga.xtended.kernel.SpritesCacheManager.SoftValue


                                        if (memorySensitiveCallback("writeSwap", this, new Object[]{keyReg, (Serializable) obj}, new Class[]{KeyRegistry.class, Serializable.class}).equals(Boolean.FALSE)) {
                                                throw new Exception("Unable to swap! " + key);
                                        }
                                }
                                /*memorySensitiveUpdate(keyReg, obj); do not set strong reference on adding*/
                                ancient = (SoftValue<KeyRegistry<K>, V>) cache.put(keyReg, new SoftValue(obj, keyReg));
                                buffer(ancient);
                                updateSubMaps(false, key, obj);
                                updateSubListsK(false, key);
                                updateSubListsV(false, obj);
                                if (ancient != null) {
View Full Code Here


        public void buffer(Object obj) {
                int pty = Thread.currentThread().getPriority();
                Thread.currentThread().setPriority(Thread.MAX_PRIORITY);
                cleanup();
                if (obj != null) {
                        buffer.put(obj.hashCode(), new SoftValue(obj, obj.hashCode()));
                }
                Thread.currentThread().setPriority(pty);
        }
View Full Code Here

                @Override
                public void clear() {
                        if (enqueueClear) {
                                Object o = get();
                                if (o != null) {
                                        SoftValue sClear = new SoftValue(o, key, false);
                                        sClear.enqueue();
                                }
                        }
                        super.clear();
                }
View Full Code Here

TOP

Related Classes of net.sf.jiga.xtended.kernel.SpritesCacheManager.SoftValue

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.