public interface Replaceable<T>
Modifier and Type | Method and Description |
---|---|
T |
replace(T item)
Replace the server's state with the given item.
|
T replace(T item)
If Lockable.lockResourceVersion(String)
has been used to lock the resourceVersion,
this operation is effectively a single update attempt against that version.
If Lockable.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.
item
- with the replacement stateCopyright © 2015–2022 Red Hat. All rights reserved.