Package java.util.concurrent.atomic

Examples of java.util.concurrent.atomic.AtomicLong.intValue()


            private AtomicLong _storeSizeIncrease = new AtomicLong();

            @Override
            public StoreFuture commitTranAsync()
            {
                QuotaMessageStore.this.storedSizeChange(_storeSizeIncrease.intValue());
                return StoreFuture.IMMEDIATE_FUTURE;
            }

            @Override
            public void enqueueMessage(TransactionLogResource queue, EnqueueableMessage message)
View Full Code Here


            }

            @Override
            public void commitTran()
            {
                QuotaMessageStore.this.storedSizeChange(_storeSizeIncrease.intValue());
            }

            @Override
            public void abortTran()
            {
View Full Code Here

        if (obj == null) return 0;
        final AtomicLong score = this.map.remove(obj);
        if (score == null) return 0;

        // decrease overall counter
        this.gcount -= score.intValue();
        return score.intValue();
    }

    public boolean containsKey(final E obj) {
        return this.map.containsKey(obj);
View Full Code Here

        final AtomicLong score = this.map.remove(obj);
        if (score == null) return 0;

        // decrease overall counter
        this.gcount -= score.intValue();
        return score.intValue();
    }

    public boolean containsKey(final E obj) {
        return this.map.containsKey(obj);
    }
View Full Code Here

    public int get(final E obj) {
        if (obj == null) return 0;
        final AtomicLong score = this.map.get(obj);
        if (score == null) return 0;
        return score.intValue();
    }

    public int getMinScore() {
        if (this.map.isEmpty()) return -1;
        int minScore = Integer.MAX_VALUE;
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.