public class PeriodicUpdatesService
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.util.concurrent.LinkedBlockingQueue<UpdateRequest> |
updateRequests |
protected static java.util.LinkedHashMap<java.lang.Object,java.lang.Long> |
updateTimes |
Modifier and Type | Method and Description |
---|---|
static java.lang.Thread |
getUpdaterThread(java.lang.String name) |
static java.util.Collection<IPeriodicUpdates> |
inspect(java.lang.Object pojo) |
static boolean |
isUpdatesEnabled()
Verifies that the updates are currently enabled
|
static void |
main(java.lang.String[] args) |
static void |
register(IPeriodicUpdates client)
Adds a new client that is to be updated periodically
|
static void |
stopUpdating()
Deactivates updates
|
static void |
unregister(IPeriodicUpdates client)
Removes a client that doesn't want to be updated anymore
|
protected static java.util.concurrent.LinkedBlockingQueue<UpdateRequest> updateRequests
protected static java.util.LinkedHashMap<java.lang.Object,java.lang.Long> updateTimes
public static boolean isUpdatesEnabled()
public static void stopUpdating()
public static void register(IPeriodicUpdates client)
client
- The client that wants to be warned at specific time intervalspublic static java.util.Collection<IPeriodicUpdates> inspect(java.lang.Object pojo)
public static void unregister(IPeriodicUpdates client)
client
- The client that wants to be removedpublic static java.lang.Thread getUpdaterThread(java.lang.String name)
public static void main(java.lang.String[] args)
Copyright © 2004-2014 FEUP-LSTS and Neptus developers. All Rights Reserved.