|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IModificationWatcher
Monitors one or more IModifiable
objects, calling a IChangeListener
when a given object's modification time changes.
Method Summary | |
---|---|
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 . |
java.util.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. |
Method Detail |
---|
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
modified
true
if the set did not already contain the specified elementIModifiable remove(IModifiable modifiable)
IModifiable
object.
modifiable
- an IModifiable
object
IModifiable
object that was removed, else null
void start(Duration pollFrequency)
Duration
polling rate.
pollFrequency
- the polling rate Duration
void destroy()
ModificationWatcher
.
java.util.Set<IModifiable> getEntries()
IModifiable
objects currently being monitored.
Set
of all IModifiable
entries currently maintained
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |