Package voldemort.common.nio

Source Code of voldemort.common.nio.CommBufferSizeStats

package voldemort.common.nio;

import org.apache.commons.lang.mutable.MutableLong;

/**
* Statistics object to track the communication buffer sizes across all the
* connections, handled by the selector managers
*
*/
public class CommBufferSizeStats {

    private MutableLong commReadBufferSizeBytes;

    private MutableLong commWriteBufferSizeBytes;

    public CommBufferSizeStats() {
        commReadBufferSizeBytes = new MutableLong(0);
        commWriteBufferSizeBytes = new MutableLong(0);
    }

    public MutableLong getCommReadBufferSizeTracker() {
        return commReadBufferSizeBytes;
    }

    public MutableLong getCommWriteBufferSizeTracker() {
        return commWriteBufferSizeBytes;
    }
}
TOP

Related Classes of voldemort.common.nio.CommBufferSizeStats

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.