blob: 13eb0747c4b53381a23019f4df4ae1c4b6009602 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.impl.protocol.rss;
import java.util.*;
import net.java.sip.communicator.util.*;
/**
* Instant messaging functionalites for the Rss protocol.
*
* @author Jean-Albert Vescovo
*/
public class RssTimerRefreshFeed
extends TimerTask
{
private static final Logger logger
= Logger.getLogger(RssTimerRefreshFeed.class);
private OperationSetBasicInstantMessagingRssImpl opSet;
/**
* Creates an instance of timer used to seeking periodically the rss feeds
* registered as contacts.
* @param opSet the OperationSetBasicInstantMessagingRssImpl instance that
* is managing the rss protocol.
*/
public RssTimerRefreshFeed(OperationSetBasicInstantMessagingRssImpl opSet)
{
this.opSet = opSet;
}
/**
* What the timer is supposed to do each time the PERIOD_REFRESH_RSS expire.
* In facts, it launch a new thread responsible for starting one or more
* rss queries
*/
public void run()
{
if (logger.isTraceEnabled())
logger.trace("Starting a periodic rss check.");
this.opSet.refreshAllRssFeeds();
}
}
|