/** Sone inserters. */
/* synchronize access on this on sones. */
- private final Map<Sone, SoneInserter> soneInserters = new HashMap<Sone, SoneInserter>();
+ private final Map<LocalSone, SoneInserter> soneInserters = new HashMap<LocalSone, SoneInserter>();
/** Sone rescuers. */
/* synchronize access on this on sones. */
return null;
}
logger.info(String.format("Adding Sone from OwnIdentity: %s", ownIdentity));
- Sone sone = database.registerLocalSone(ownIdentity);
+ LocalSone sone = database.registerLocalSone(ownIdentity);
SoneInserter soneInserter = new SoneInserter(this, eventBus, freenetInterface, ownIdentity.getId());
eventBus.register(soneInserter);
synchronized (soneInserters) {
public void serviceStop() {
localElementTicker.shutdownNow();
synchronized (soneInserters) {
- for (Entry<Sone, SoneInserter> soneInserter : soneInserters.entrySet()) {
+ for (Entry<LocalSone, SoneInserter> soneInserter : soneInserters.entrySet()) {
soneInserter.getValue().stop();
}
}