|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@ComponentSpecification public interface PeriodicRefresher
This is the interface for a component that periodically
refreshes
registered
Refreshable
s. The refresh of a Refreshable
will
happen until it is de-registered
.
Method Summary | |
---|---|
void |
addRefreshable(Refreshable refreshable)
This method will register the given refreshable so it will be
refreshed periodically. |
void |
removeRefreshable(Refreshable refreshable)
This method removes the given refreshable from this
PeriodicRefresher . |
Method Detail |
---|
void addRefreshable(Refreshable refreshable)
refreshable
so it will be
refreshed
periodically.Refreshable
is added here.Refreshable
if this is really desired and its implementation of
Refreshable.refresh()
is fast or only takes performance if
something that rarely changes has been modified.Refreshable
has to have a proper implementation
of Object.equals(Object)
and Object.hashCode()
as it may be
stored in a Collection
.
refreshable
- is the Refreshable
to register and refresh
periodically.void removeRefreshable(Refreshable refreshable)
refreshable
from this
PeriodicRefresher
. This will typically happen when the according
Refreshable
shall be closed
or
disposed.searchEngine
has never been
registered
, this method has no effect.
refreshable
- is the Refreshable
to de-register.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |