Code example for AtomicLong

Methods: set

0
 
 
    @Override 
    public void flush() throws IOException { 
        this.channel.force(true);
        this.highWaterMark.set(this.sizeInBytes.get());
    } 
 
 
    /** 
     * just for test 
     *  
     * @param newValue 
     */ 
    void setSizeInBytes(final long newValue) {
        this.sizeInBytes.set(newValue);
    } 
 
 
    /** 
     * just for test