public interface Updatable<T>
| Modifier and Type | Method and Description |
|---|---|
T |
replace()
Deprecated.
use
update() instead |
T |
update()
Update the server's state with the given item (PUT).
|
@Deprecated T replace()
update() instead
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.
T update()
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.
Copyright © 2015–2024 Red Hat. All rights reserved.