com.aelitis.azureus.activities
Class VuzeActivitiesManager
java.lang.Object
com.aelitis.azureus.activities.VuzeActivitiesManager
public class VuzeActivitiesManager
- extends Object
Manage Vuze News Entries. Loads, Saves, and expires them
- Author:
- TuxPaper
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_LIFE_MS
public static final long MAX_LIFE_MS
- See Also:
- Constant Field Values
VuzeActivitiesManager
public VuzeActivitiesManager()
initialize
public static void initialize(AzureusCore core)
pullActivitiesNow
public static void pullActivitiesNow(long delay,
String reason,
boolean alwaysPull)
- Pull entries from webapp
- Parameters:
delay
- max time to wait before running request- Since:
- 3.0.4.3
clearLastPullTimes
public static void clearLastPullTimes()
resetRemovedEntries
public static void resetRemovedEntries()
- Clear the removed entries list so that an entry that was once deleted will
will be able to be added again
- Since:
- 3.0.4.3
getCutoffTime
public static long getCutoffTime()
addListener
public static void addListener(VuzeActivitiesListener l)
removeListener
public static void removeListener(VuzeActivitiesListener l)
addListener
public static void addListener(VuzeActivitiesLoadedListener l)
removeListener
public static void removeListener(VuzeActivitiesLoadedListener l)
addEntries
public static VuzeActivitiesEntry[] addEntries(VuzeActivitiesEntry[] entries)
- Parameters:
entries
-
- Returns:
- list of entries actually added (no dups)
- Since:
- 3.0.4.3
removeEntries
public static void removeEntries(VuzeActivitiesEntry[] entries)
removeEntries
public static void removeEntries(VuzeActivitiesEntry[] entries,
boolean allowReAdd)
getEntryByID
public static VuzeActivitiesEntry getEntryByID(String id)
isEntryIdRemoved
public static boolean isEntryIdRemoved(String id)
getAllEntries
public static List<VuzeActivitiesEntry> getAllEntries()
getMostRecentUnseen
public static Object[] getMostRecentUnseen()
getNumEntries
public static int getNumEntries()
log
public static void log(String s)
triggerEntryChanged
public static void triggerEntryChanged(VuzeActivitiesEntry entry)
- Parameters:
vuzeActivitiesEntry
- - Since:
- 3.0.4.3
createEntryFromMap
public static VuzeActivitiesEntry createEntryFromMap(Map<?,?> map,
boolean internalMap)
- Parameters:
map
-
- Returns:
- Since:
- 3.0.5.3