-
public interface UpdateStrategy
AnUpdateStrategy
defines howUpdatableManagedObject
s are updated on behalf of server queries to aMOServer
.- Version:
- 1.2
- Author:
- Frank Fock
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isUpdateNeeded(MOServer server, UpdatableManagedObject<?> mo, MOQuery query)
Checks whether the suppliedUpdatableManagedObject
needs to be updated or not to serve the supplied query.
-
-
-
Method Detail
-
isUpdateNeeded
boolean isUpdateNeeded(MOServer server, UpdatableManagedObject<?> mo, MOQuery query)
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.
-
-