public interface Replaceable<T>
| Modifier and Type | Method and Description |
|---|---|
T |
replace()
Deprecated.
use
update() instead |
T |
replaceStatus()
Deprecated.
use
updateStatus() instead |
T |
update()
Update the server's state with the given item (PUT).
|
T |
updateStatus()
Similar to
update(), but only affects the status subresource |
@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.
@Deprecated T replaceStatus()
updateStatus() insteadreplace(), but only affects the status subresourceT updateStatus()
update(), but only affects the status subresourceT 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–2023 Red Hat. All rights reserved.