ex.skip(len); indexTrailer = data.createTailer(); exTrailer = data.createTailer(); exAppender = data.createAppender();
@Override public ExcerptTailer createTailer() throws IOException { return this.wrappedChronicle != null ? this.wrappedChronicle.createTailer() : null; }
private ExcerptCommon createExcerpt0() throws IOException { if (this.excerpt != null) { throw new IllegalStateException("An excerpt has already been created"); } this.excerpt = isLocal ? new StatefulLocalExcerpt(wrappedChronicle.createTailer()) : new StatefulExcerpt(wrappedChronicle.createTailer()); return this.excerpt; }
@Override public ExcerptTailer createTailer() throws IOException { return new SourceExcerpt(wrappedChronicle.createTailer()); }
@Override public ExcerptTailer createTailer() throws IOException { return new SourceExcerpt(chronicle.createTailer()); }
private ExcerptTailer createPersistedExcerpt() throws IOException { if (!excerpts.isEmpty()) { throw new UnsupportedOperationException("An Excerpt has already been created"); } if(isLocal) { return (chronicle instanceof IndexedChronicle) ? new PersistentIndexedLocalSinkExcerpt(chronicle.createTailer()) : new PersistentVanillaLocalSinkExcerpt(chronicle.createTailer()); } else { return (chronicle instanceof IndexedChronicle) ? new PersistentIndexedSinkExcerpt(chronicle.createTailer()) : new PersistentVanillaSinkExcerpt(chronicle.createTailer()); } }
long index = args.length > 1 ? Long.parseLong(args[1]) : 0L; Chronicle ic = ChronicleQueueBuilder.indexed(basePath).build(); ExcerptTailer excerpt = ic.createTailer();
@Override public void run() { try { tailer = chronicle.createTailer(); socket.register(selector, SelectionKey.OP_READ);
this.queueConsumer = new DefaultStreamingMessageQueueConsumer(this.getId(), this.chronicle.createTailer(), this.queueWaitStrategy); this.queueProducer = new DefaultStreamingMessageQueueProducer(this.getId(), this.chronicle.createAppender(), this.queueWaitStrategy); } catch (IOException e) {
.register(socketChannel, SelectionKey.OP_READ, new Attached()); tailer = builder.chronicle().createTailer(); appender = builder.chronicle().createAppender();
ExcerptTailer ex = chronicle.createTailer();
ExcerptTailer ex = chronicle.createTailer();
app.finish(); ExcerptTailer vtail = vcron.createTailer(); while (vtail.nextIndex()) { MessageKey key = (MessageKey) vtail.readObject();