use of net.openhft.chronicle.queue.BufferMode in project Chronicle-Queue by OpenHFT.
the class Main method getBufferMode.
private static BufferMode getBufferMode() {
String bufferMode = System.getProperty("bufferMode");
if (bufferMode != null && bufferMode.length() > 0)
return BufferMode.valueOf(bufferMode);
BufferMode bm;
try {
Class.forName("software.chronicle.enterprise.queue.ChronicleRingBuffer");
bm = BufferMode.Asynchronous;
} catch (ClassNotFoundException cnfe) {
bm = BufferMode.None;
}
return bm;
}
Aggregations