more pubsub special cases handling

This commit is contained in:
Athou
2013-05-23 12:58:05 +02:00
parent 4935d4f1bc
commit dae85a2f48
2 changed files with 5 additions and 1 deletions

View File

@@ -64,7 +64,7 @@ public class FeedRefreshUpdater {
pool.setRejectedExecutionHandler(new ThreadPoolExecutor.CallerRunsPolicy() {
@Override
public void rejectedExecution(Runnable r, ThreadPoolExecutor e) {
log.info("Thread queue full, executing in own thread.");
log.debug("Thread queue full, executing in own thread.");
super.rejectedExecution(r, e);
}
});

View File

@@ -143,6 +143,10 @@ public class FeedRefreshWorker {
}
if (topic.startsWith("www.")) {
topic = "http://" + topic;
} else if (topic.startsWith("feed://")) {
topic = "http://" + topic.substring(7);
} else if (topic.startsWith("http") == false) {
topic = "http://" + topic;
}
log.debug("feed {} has pubsub info: {}", feed.getUrl(), topic);
FeedPushInfo info = feed.getPushInfo();