All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.openservices.loghub.client.metrics.kv.LogValue Maven / Gradle / Ivy

There is a newer version: 0.6.7
Show newest version
package com.aliyun.openservices.loghub.client.metrics.kv;


import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicReference;

public class LogValue {

	private AtomicInteger count = new AtomicInteger(0);

    private AtomicReference message = new AtomicReference();

    public void addCount (int value){
		count.addAndGet(value);
	}

	public void incrementCount (){
		count.incrementAndGet();
	}

	public int getCount (){
		return count.get();
	}

	public String getMessage() {
		return message.get();
	}

	public void setMessage(final String message) {
		this.message.set(message);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy