Interface UpdateStrategy


  • public interface UpdateStrategy
    An UpdateStrategy defines how UpdatableManagedObjects are updated on behalf of server queries to a MOServer.
    Version:
    1.2
    Author:
    Frank Fock
    • Method Detail

      • isUpdateNeeded

        boolean isUpdateNeeded​(MOServer server,
                               UpdatableManagedObject<?> mo,
                               MOQuery query)
        Checks whether the supplied UpdatableManagedObject needs to be updated or not to serve the supplied query.
        Parameters:
        server - the MOServer trying to access the mo (can be null if no such server is known).
        mo - the accessed updatable managed object.
        query - the query accessing the mo.
        Returns:
        true if the server (or any other interested instance) should call UpdatableManagedObject.update(MOQuery updateScope) to update mo's content.