Interface Updatable<T>

    • Method Detail

      • replace

        @Deprecated
        T replace()
        Deprecated.
        use update() instead
        Replace the server's state with the given item.

        If Resource.lockResourceVersion(String) has been used to lock the resourceVersion, this operation is effectively a single update attempt against that version.

        If Resource.lockResourceVersion(String) has not been called, this operation will be retried a number of times in the event of a conflict. If a resourceVersion has been set on the item, the first update attempt will be made against that version. Subsequent attempts will fetch the latest resourceVersion from the server.

        Returns:
        returns deserialized version of api server response
        See Also:
        Migration FAQ
      • update

        T update()
        Update the server's state with the given item (PUT).

        If the resourceVersion is on the resource, the update will be performed with optimistic locking, and may result in a conflict (409 error). If no resourceVersion is on the resource, the latest resourceVersion will be obtained from the server prior to the update call - which may still be a conflict in a rare circumstance.

        Returns:
        returns deserialized version of api server response