Code example for AtomicLong

Methods: get

0
 
    /** 
     * @return the number of aggregated "used" bytes so far 
     */ 
    public long getUsed() { 
        return this.used.get();
    } 
 
    /** 
     * @return the number of bytes that can be added before the breaker trips 
     */ 
    public long getLimit() { 
        return this.memoryBytesLimit;
    } 
 
    /** 
     * @return the constant multiplier the breaker uses for aggregations 
     */ 
    public double getOverhead() { 
        return this.overheadConstant;