public interface IModificationWatcher
IModifiable objects, calling a IChangeListener when a given object's modification time changes.| Modifier and Type | Method and Description |
|---|---|
boolean |
add(IModifiable modifiable,
IChangeListener listener)
Adds an
IModifiable object and an IChangeListener object to call
when the modifiable object is modified. |
void |
destroy()
Stops this
ModificationWatcher. |
Set<IModifiable> |
getEntries()
Retrieves a key set of all
IModifiable objects currently being monitored. |
IModifiable |
remove(IModifiable modifiable)
Removes all entries associated with an
IModifiable object. |
void |
start(Duration pollFrequency)
Starts watching at a given
Duration polling rate. |
boolean add(IModifiable modifiable, IChangeListener listener)
IModifiable object and an IChangeListener object to call
when the modifiable object is modified.modifiable - an IModifiable object to monitorlistener - an IChangeListener to call if the IModifiable object is
modifiedtrue if the set did not already contain the specified elementIModifiable remove(IModifiable modifiable)
IModifiable object.modifiable - an IModifiable objectIModifiable object that was removed, else nullvoid start(Duration pollFrequency)
Duration polling rate.pollFrequency - the polling rate Durationvoid destroy()
ModificationWatcher.Set<IModifiable> getEntries()
IModifiable objects currently being monitored.Set of all IModifiable entries currently maintainedCopyright © 2006-2012 Apache Software Foundation. All Rights Reserved.