Search in sources :

Example 1 with BufferMode

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;
}
Also used : BufferMode(net.openhft.chronicle.queue.BufferMode)

Aggregations

BufferMode (net.openhft.chronicle.queue.BufferMode)1