Skip to content

Commit

Permalink
Fixes #511
Browse files Browse the repository at this point in the history
  • Loading branch information
dpisklov committed Sep 3, 2018
1 parent dd9b988 commit 92e0c79
Show file tree
Hide file tree
Showing 28 changed files with 748 additions and 1,341 deletions.
Expand Up @@ -23,7 +23,6 @@
import net.openhft.chronicle.engine.client.internal.ClientWiredChronicleQueueStateless.EventId;
import net.openhft.chronicle.network.event.EventGroup;
import net.openhft.chronicle.queue.ChronicleQueue;
import net.openhft.chronicle.queue.ChronicleQueueBuilder;
import net.openhft.chronicle.queue.ExcerptAppender;
import net.openhft.chronicle.queue.ExcerptTailer;
import org.slf4j.Logger;
Expand Down Expand Up @@ -195,7 +194,7 @@ private ChronicleQueue getQueue(StringBuilder cspText) {
queue = fileNameToChronicle.computeIfAbsent
(filename, s -> {
try {
return new ChronicleQueueBuilder(filename).build();
return net.openhft.chronicle.queue.impl.single.SingleChronicleQueueBuilder.single(filename).build();
} catch (IOException e) {
e.printStackTrace();
}
Expand Down
Expand Up @@ -18,7 +18,6 @@
package net.openhft.chronicle.queue.impl;

import net.openhft.chronicle.queue.ChronicleQueue;
import net.openhft.chronicle.queue.ChronicleQueueBuilder;
import net.openhft.chronicle.queue.ExcerptAppender;
import net.openhft.chronicle.queue.ExcerptTailer;
import net.openhft.chronicle.wire.BinaryWire;
Expand Down
Expand Up @@ -20,7 +20,6 @@

import net.openhft.chronicle.bytes.Bytes;
import net.openhft.chronicle.bytes.NativeBytesStore;
import net.openhft.chronicle.queue.ChronicleQueueBuilder;
import net.openhft.chronicle.queue.impl.ringbuffer.BytesRingBuffer;
import org.junit.Assert;
import org.junit.Ignore;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/net/openhft/chronicle/queue/BenchmarkMain.java
Expand Up @@ -7,6 +7,7 @@
import net.openhft.chronicle.core.OS;
import net.openhft.chronicle.core.io.IOTools;
import net.openhft.chronicle.core.util.Histogram;
import net.openhft.chronicle.queue.impl.single.SingleChronicleQueueBuilder;
import net.openhft.chronicle.threads.Pauser;
import net.openhft.chronicle.wire.DocumentContext;
import net.openhft.chronicle.wire.Wire;
Expand Down Expand Up @@ -173,7 +174,7 @@ private static void runInner(Histogram transportTime, Histogram readTime, Excerp

@NotNull
private static ChronicleQueue createQueue(String path) {
return ChronicleQueueBuilder.single(path).blockSize(1 << 30)
return SingleChronicleQueueBuilder.single(path).blockSize(1 << 30)
.pauserSupplier(Pauser::timedBusy)
.build();
}
Expand Down
6 changes: 0 additions & 6 deletions src/main/java/net/openhft/chronicle/queue/ChronicleQueue.java
Expand Up @@ -170,12 +170,6 @@ default <T> VanillaMethodWriterBuilder<T> methodWriterBuilder(@NotNull Class<T>
new BinaryMethodWriterInvocationHandler(false, this::acquireAppender));
}

default int numberOfReferences(final File queueFile) {
Jvm.warn().on(ChronicleQueue.class, "File-reference counting is only supported in Chronicle Queue Enterprise. " +
"If you would like to use this feature, please contact sales@chronicle.software for more information.");
return 0;
}

RollCycle rollCycle();

TimeProvider time();
Expand Down
272 changes: 0 additions & 272 deletions src/main/java/net/openhft/chronicle/queue/ChronicleQueueBuilder.java

This file was deleted.

0 comments on commit 92e0c79

Please sign in to comment.