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<IModifiable> 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<IModifiable> 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 null
void start(Duration pollFrequency)
Duration
polling rate.pollFrequency
- the polling rate Duration
void destroy()
ModificationWatcher
.Set<IModifiable> getEntries()
IModifiable
objects currently being monitored.Set
of all IModifiable
entries currently maintainedCopyright © 2006–2022 Apache Software Foundation. All rights reserved.