cleanup
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
package org.lucares.performance.db;
|
||||
|
||||
public class FileCorruptException extends RuntimeException {
|
||||
|
||||
private static final long serialVersionUID = -4194021585305770924L;
|
||||
|
||||
public FileCorruptException(final String message) {
|
||||
super(message);
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,6 @@ package org.lucares.performance.db;
|
||||
|
||||
import java.io.Flushable;
|
||||
import java.io.IOException;
|
||||
import java.time.OffsetDateTime;
|
||||
import java.util.Optional;
|
||||
|
||||
import org.lucares.pdb.api.Entry;
|
||||
@@ -36,10 +35,6 @@ class PdbWriter implements AutoCloseable, Flushable {
|
||||
return pdbFile;
|
||||
}
|
||||
|
||||
public OffsetDateTime getDateOffset() {
|
||||
return DateUtils.epochMilliInUTC(lastEpochMilli);
|
||||
}
|
||||
|
||||
public long getDateOffsetAsEpochMilli() {
|
||||
return lastEpochMilli;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,6 @@ import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.SortedSet;
|
||||
import java.util.concurrent.BlockingQueue;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.TimeoutException;
|
||||
import java.util.stream.Stream;
|
||||
@@ -48,11 +47,6 @@ public class PerformanceDb implements AutoCloseable {
|
||||
put(entries.iterator());
|
||||
}
|
||||
|
||||
public void put(final BlockingQueue<Entry> entries, final Entry poisonObject) throws WriteException {
|
||||
final BlockingQueueIterator<Entry> iterator = new BlockingQueueIterator<>(entries, poisonObject);
|
||||
put(iterator);
|
||||
}
|
||||
|
||||
public void put(final Iterator<Entry> entries) throws WriteException {
|
||||
|
||||
final BlockingIteratorIterator<Entry> iterator = new BlockingIteratorIterator<>(entries);
|
||||
|
||||
Reference in New Issue
Block a user