Update an object with a SpaceID, blocking if locked under another transaction.


- T
- Type of object to update.

- obj (T)
- An object with a SpaceID defined.
- leaseTime (Int64)
- The requested lease time of the updated entity, in milliseconds; 0 means retain the original lease.

Previous value on successful update, null if object was written (not updated).

Exception | Condition |
---|---|
EntryNotInSpaceException | An entry with matching ID does not exist in space. |
OperationTimeoutException | Timeout expired after waiting for a transactional proper matching entry (when using UpdateModifiers.UpdateOrWrite). |
UnusableEntryException | A serialized field of the object being read cannot be deserialized. |
TransactionException | Transaction error occured. |
EntryVersionConflictException | Operation is rejected as a result of optimistic locking version conflict. |
InactiveSpaceException | The space is in backup mode and therefore is not active. |