@ComponentSpecification public interface PeriodicRefresher
refreshes
registered
Refreshable
s. The refresh of a Refreshable
will happen until it is de-registered
.Modifier and Type | Method and Description |
---|---|
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 . |
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.Copyright © 2001–2014 mmm-Team. All rights reserved.