public class ResourceNotifierHelper extends Object implements Serviceable, Component, Initializable
Modifier and Type | Field and Description |
---|---|
private static long |
__HISTORY_EXPIRATION_TIME
Time of expiration of a log (5 minutes)
|
private static long |
__TIME_DURATION_BEFORE_NEXT_CLEAN
Time duration between 2 cleansing of logs queue (10 seconds)
|
protected CurrentUserProvider |
_currentUserProvider
The current user provider
|
private long |
_lastCleanTime |
private LinkedList<Map<String,Object>> |
_sentHistory |
static String |
ROLE
Avalon role.
|
Constructor and Description |
---|
ResourceNotifierHelper() |
Modifier and Type | Method and Description |
---|---|
private void |
_cleanupHistory() |
void |
initialize() |
boolean |
resourceRecentlyModified(String resourceId)
Notify the observation manager when a resource is updated
|
void |
service(ServiceManager manager) |
private static final long __HISTORY_EXPIRATION_TIME
private static final long __TIME_DURATION_BEFORE_NEXT_CLEAN
protected CurrentUserProvider _currentUserProvider
private LinkedList<Map<String,Object>> _sentHistory
private long _lastCleanTime
public ResourceNotifierHelper()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void initialize() throws Exception
initialize
in interface Initializable
Exception
public boolean resourceRecentlyModified(String resourceId)
resourceId
- The resource updatedprivate void _cleanupHistory()