public interface UpdateStrategy
An
UpdateStrategy
defines how UpdatableManagedObject
s
are updated on behalf of server queries to a MOServer
.- Version:
- 1.2
- Author:
- Frank Fock
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isUpdateNeeded
(MOServer server, UpdatableManagedObject<?> mo, MOQuery query) Checks whether the suppliedUpdatableManagedObject
needs to be updated or not to serve the supplied query.
-
Method Details
-
isUpdateNeeded
Checks whether the suppliedUpdatableManagedObject
needs to be updated or not to serve the supplied query.- Parameters:
server
- the MOServer trying to access themo
(can benull
if no such server is known).mo
- the accessed updatable managed object.query
- the query accessing themo
.- Returns:
true
if the server (or any other interested instance) should callUpdatableManagedObject.update(MOQuery updateScope)
to updatemo
's content.
-