Package er.extensions.foundation

Examples of er.extensions.foundation.ERXMutableInteger


     * @param browser - ブラウザ・プールの登録から解除するブラウザ・オブジェクト
     * </span>
     */
    public synchronized void releaseBrowser(ERXBrowser browser) {
        String key = _computeKey(browser);
        ERXMutableInteger count = _decrementReferenceCounterForKey(key);
        if (count == null) {
            // Perhaps forgot to call registerBrowser() but try to remove the browser for sure
            _browserPool().removeObjectForKey(key);
        } else if (count.intValue() <= 0) {
            _browserPool().removeObjectForKey(key);
            _referenceCounters().removeObjectForKey(key);
        }
    }
View Full Code Here


     *
     * @return 新しいカウンターの値を戻します
     * </span>
     */
    private ERXMutableInteger _incrementReferenceCounterForKey(String key) {
        ERXMutableInteger count = (ERXMutableInteger)_referenceCounters().objectForKey(key);
        if (count != null)
            count.increment();
        else {
            count = new ERXMutableInteger(1);
            _referenceCounters().setObjectForKey(count, key);
        }
        if (log.isDebugEnabled())
            log.debug("_incrementReferenceCounterForKey() - count = " + count + ", key = " + key);
        return count;
View Full Code Here

     *
     * @return 新しいカウンターの値を戻します
     * <span>
     */
    private ERXMutableInteger _decrementReferenceCounterForKey(String key) {
        ERXMutableInteger count = (ERXMutableInteger)_referenceCounters().objectForKey(key);
        if (count != null
            count.decrement();
       
        if (log.isDebugEnabled())
            log.debug("_decrementReferenceCounterForKey() - count = " + count + ", key = " + key);
        return count;
    }
View Full Code Here

TOP

Related Classes of er.extensions.foundation.ERXMutableInteger

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.