GigaSpaces XAP.NET Documentation
Update<(Of <(T>)>) Method (obj, tx, leaseTime, timeout, modifiers)
Class LibraryGigaSpaces.CoreISpaceProxyUpdate<(Of <(T>)>)(T, ITransaction, Int64, Int64, UpdateModifiers)
Update an object with a SpaceID, blocking if locked under another transaction.
Declaration Syntax
C#Visual BasicVisual C++J#
T Update<T>(
	T obj,
	ITransaction tx,
	long leaseTime,
	long timeout,
	UpdateModifiers modifiers
)
Function Update(Of T) ( _
	obj As T, _
	tx As ITransaction, _
	leaseTime As Long, _
	timeout As Long, _
	modifiers As UpdateModifiers _
) As T
generic<typename T>
T Update(
	T obj, 
	ITransaction^ tx, 
	long long leaseTime, 
	long long timeout, 
	UpdateModifiers modifiers
)
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.
modifiers (UpdateModifiers)
Operation modifiers.
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: 7.0.1.3800 (7.0.1.3800)