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

com.emc.mongoose.storage.driver.pravega.EndToEndLogMessage Maven / Gradle / Ivy

There is a newer version: 4.2.31
Show newest version
package com.emc.mongoose.storage.driver.pravega;

import com.emc.mongoose.base.logging.LogMessageBase;
import static java.lang.System.lineSeparator;

public class EndToEndLogMessage
	extends LogMessageBase {

	private static final String LINE_SEP = lineSeparator();

	private final String msgId;
	private final long size;
	private final long timeMillis;

	public EndToEndLogMessage(final String  msgId, final long size, final long timeMillis) {
		this.msgId = msgId;
		this.size = size;
		this.timeMillis = timeMillis;
	}

	@Override
	public void formatTo(final StringBuilder buff) {
		buff
			.append(msgId).append(',')
			.append(size).append(',')
			.append(timeMillis).append(LINE_SEP);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy