BAEL-995: resolved merge issues (#2255)

This commit is contained in:
Syed Ali Raza
2017-07-13 12:02:05 +05:00
committed by Grzegorz Piwowarek
parent 84956990b6
commit 78de955aac
3 changed files with 71 additions and 0 deletions
@@ -0,0 +1,23 @@
package com.baeldung.chronicle.queue;
import java.io.IOException;
import net.openhft.chronicle.Chronicle;
import net.openhft.chronicle.ExcerptAppender;
public class ChronicleQueue {
public static void writeToQueue(
Chronicle chronicle, String stringValue, int intValue, long longValue, double doubleValue)
throws IOException {
ExcerptAppender appender = chronicle.createAppender();
appender.startExcerpt();
appender.writeUTF(stringValue);
appender.writeInt(intValue);
appender.writeLong(longValue);
appender.writeDouble(doubleValue);
appender.finish();
appender.close();
}
}