src/org/sonews/feed/FeedManager.java
changeset 53 08c214a5c52d
parent 35 ed84c8bdd87b
     1.1 --- a/src/org/sonews/feed/FeedManager.java	Sun Aug 29 17:28:58 2010 +0200
     1.2 +++ b/src/org/sonews/feed/FeedManager.java	Mon Sep 12 20:24:40 2011 +0200
     1.3 @@ -25,30 +25,30 @@
     1.4   * @author Christian Lins
     1.5   * @since sonews/0.5.0
     1.6   */
     1.7 -public final class FeedManager 
     1.8 +public final class FeedManager
     1.9  {
    1.10  
    1.11 -  public static final int TYPE_PULL = 0;
    1.12 -  public static final int TYPE_PUSH = 1;
    1.13 -  
    1.14 -  private static PullFeeder pullFeeder = new PullFeeder();
    1.15 -  private static PushFeeder pushFeeder = new PushFeeder();
    1.16 -  
    1.17 -  /**
    1.18 -   * Reads the peer subscriptions from database and starts the appropriate
    1.19 -   * PullFeeder or PushFeeder.
    1.20 -   */
    1.21 -  public static synchronized void startFeeding()
    1.22 -  {
    1.23 -    pullFeeder.start();
    1.24 -    pushFeeder.start();
    1.25 -  }
    1.26 -  
    1.27 -  public static void queueForPush(Article article)
    1.28 -  {
    1.29 -    pushFeeder.queueForPush(article);
    1.30 -  }
    1.31 -  
    1.32 -  private FeedManager() {}
    1.33 -  
    1.34 +	public static final int TYPE_PULL = 0;
    1.35 +	public static final int TYPE_PUSH = 1;
    1.36 +	private static PullFeeder pullFeeder = new PullFeeder();
    1.37 +	private static PushFeeder pushFeeder = new PushFeeder();
    1.38 +
    1.39 +	/**
    1.40 +	 * Reads the peer subscriptions from database and starts the appropriate
    1.41 +	 * PullFeeder or PushFeeder.
    1.42 +	 */
    1.43 +	public static synchronized void startFeeding()
    1.44 +	{
    1.45 +		pullFeeder.start();
    1.46 +		pushFeeder.start();
    1.47 +	}
    1.48 +
    1.49 +	public static void queueForPush(Article article)
    1.50 +	{
    1.51 +		pushFeeder.queueForPush(article);
    1.52 +	}
    1.53 +
    1.54 +	private FeedManager()
    1.55 +	{
    1.56 +	}
    1.57  }