diff -r ed84c8bdd87b -r c713ca00a4a7 src/org/sonews/feed/FeedManager.java --- a/src/org/sonews/feed/FeedManager.java Sun Aug 29 17:28:58 2010 +0200 +++ b/src/org/sonews/feed/FeedManager.java Tue Sep 13 19:08:15 2011 +0200 @@ -25,30 +25,30 @@ * @author Christian Lins * @since sonews/0.5.0 */ -public final class FeedManager +public final class FeedManager { - public static final int TYPE_PULL = 0; - public static final int TYPE_PUSH = 1; - - private static PullFeeder pullFeeder = new PullFeeder(); - private static PushFeeder pushFeeder = new PushFeeder(); - - /** - * Reads the peer subscriptions from database and starts the appropriate - * PullFeeder or PushFeeder. - */ - public static synchronized void startFeeding() - { - pullFeeder.start(); - pushFeeder.start(); - } - - public static void queueForPush(Article article) - { - pushFeeder.queueForPush(article); - } - - private FeedManager() {} - + public static final int TYPE_PULL = 0; + public static final int TYPE_PUSH = 1; + private static PullFeeder pullFeeder = new PullFeeder(); + private static PushFeeder pushFeeder = new PushFeeder(); + + /** + * Reads the peer subscriptions from database and starts the appropriate + * PullFeeder or PushFeeder. + */ + public static synchronized void startFeeding() + { + pullFeeder.start(); + pushFeeder.start(); + } + + public static void queueForPush(Article article) + { + pushFeeder.queueForPush(article); + } + + private FeedManager() + { + } }