GigaSpaces XAP.NET Documentation
Update<(Of <(T>)>) Method (obj, tx, leaseTime, timeout)
Class LibraryGigaSpaces.CoreISpaceProxyUpdate<(Of <(T>)>)(T, ITransaction, Int64, Int64)
Update an object with a SpaceID, blocking if locked under another transaction.
Declaration Syntax
C#Visual BasicVisual C++J#
[ObsoleteAttribute("Use Write() with the appropriate WriteModifiers instead.")]
T Update<T>(
	T obj,
	ITransaction tx,
	long leaseTime,
	long timeout
)
<ObsoleteAttribute("Use Write() with the appropriate WriteModifiers instead.")> _
Function Update(Of T) ( _
	obj As T, _
	tx As ITransaction, _
	leaseTime As Long, _
	timeout As Long _
) As T
[ObsoleteAttribute(L"Use Write() with the appropriate WriteModifiers instead.")]
generic<typename T>
T Update(
	T obj, 
	ITransaction^ tx, 
	long long leaseTime, 
	long long timeout
)
J# supports the use of generic APIs, but not the declaration of new ones.
Generic Template Parameters
T
Type of object to update.
Parameters
obj (T)
An object with a SpaceID defined.
tx (ITransaction)
The transaction (if any) under which to work.
leaseTime (Int64)
The requested lease time of the updated entity, in milliseconds; 0 means retain the original lease.
timeout (Int64)
How long the client is willing to wait for a transactionally proper matching entry.
Return Value
Previous value on successful update, null if object was written (not updated).
Exceptions
ExceptionCondition
EntryNotInSpaceExceptionAn entry with matching ID does not exist in space.
OperationTimeoutExceptionTimeout expired after waiting for a transactional proper matching entry (when using UpdateModifiers.UpdateOrWrite).
UnusableEntryExceptionA serialized field of the object being read cannot be deserialized.
TransactionExceptionTransaction error occured.
EntryVersionConflictExceptionOperation is rejected as a result of optimistic locking version conflict.
InactiveSpaceExceptionThe space is in backup mode and therefore is not active.

Assembly: GigaSpaces.Core (Module: GigaSpaces.Core) Version: 8.0.8.6380 (8.0.8.6380)