public interface Refreshable
Implementations of this interface have state that can be periodically refreshed. For example, an
implementation instance might contain some pre-computed information that should be periodically refreshed.
refresh(Collection) method triggers such a refresh.
All Taste components implement this. In particular,
Recommenders do. Callers may want to call
refresh(Collection) periodically to re-compute information throughout the system and bring it up
to date, though this operation may be expensive.
void refresh(Collection<Refreshable> alreadyRefreshed)
Triggers "refresh" -- whatever that means -- of the implementation. The general contract is that any
Refreshable should always leave itself in a consistent, operational state, and that the refresh
atomically updates internal state from old to new.
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.