Code example for AtomicLong

Methods: get

0
    } 
 
 
    @Override 
    public long getMessageCount() { 
        return this.messageCount.get();
    } 
 
 
    public long highWaterMark() { 
        return this.highWaterMark.get();
    } 
 
 
    @Override 
    public long append(final ByteBuffer buf) throws IOException {
        if (!this.mutable) {
            throw new UnsupportedOperationException("Immutable message set");
        } 
        final long offset = this.sizeInBytes.get();
        int sizeInBytes = 0;