throw new IllegalArgumentException();
this.callback = callback;
this.maxSize = maxSize;
this.period = period;
this.backDatastore = backDatastore;
SemiOrderedShutdownHook shutdownHook = SemiOrderedShutdownHook.get();
this.blocksByRoutingKey = new TreeMap<ByteArrayWrapper, Block<T>>(ByteArrayWrapper.FAST_COMPARATOR);
this.ticker = ticker;
this.size = 0;
this.startJob = false;
this.collisionPossible = callback.collisionPossible();
this.shuttingDown = false;
callback.setStore(this);
shutdownHook.addEarlyJob(new NativeThread("Close CachingFreenetStore", NativeThread.HIGH_PRIORITY, true) {
@Override
public void realRun() {
innerClose(); // SaltedHashFS has its own shutdown job.
}
});