@Override public long append(final E entry) throws IOException { if (System.currentTimeMillis()-lastRollTime > rollFrequency) { roll(); } final long writerAddress = currentWriter.append(entry); if (writerAddress >= 1L<< segmentShift) throw new IOException("current writer has exceeded maximum size"); return (((long)currentSegmentNum)<< segmentShift)+writerAddress; }
@Override public long append(final E entry) throws IOException { if (System.currentTimeMillis()-lastRollTime > rollFrequency) { roll(); } final long writerAddress = currentWriter.append(entry); if (writerAddress >= 1L<< segmentShift) throw new IOException("current writer has exceeded maximum size"); return (((long)currentSegmentNum)<< segmentShift)+writerAddress; }