Implement background task for fetching RSS feeds

* Implemented in briar-core as a `ScheduledExecutorService`
  that gets started when the app starts
* The briar-api has a `FeedManager` interface
  that the UI can use to register and unregister feeds
* In this first iteration, feeds are fetched via HTTP(S), not Tor

Closes #484
This commit is contained in:
Torsten Grote
2016-07-22 18:16:05 -03:00
parent 4af5dbb45b
commit e527e30712
11 changed files with 500 additions and 2 deletions

View File

@@ -138,6 +138,7 @@ class PluginManagerImpl implements PluginManager, Service {
}
// Wait for all the plugins to stop
try {
LOG.info("Waiting for all the plugins to stop");
stopLatch.await();
} catch (InterruptedException e) {
throw new ServiceException(e);
@@ -227,6 +228,8 @@ class PluginManagerImpl implements PluginManager, Service {
@Override
public void run() {
if (LOG.isLoggable(INFO))
LOG.info("Trying to stop plugin " + plugin.getId());
try {
// Wait for the plugin to finish starting
startLatch.await();