GigaSpaces XAP.NET Documentation
Update<(Of <(T>)>) Method (obj, leaseTime)
Class LibraryGigaSpaces.CoreISpaceProxyUpdate<(Of <(T>)>)(T, Int64)
Update an object with a SpaceID, blocking if locked under another transaction.
Declaration Syntax
C#Visual BasicVisual C++J#
T Update<T>(
	T obj,
	long leaseTime
)
Function Update(Of T) ( _
	obj As T, _
	leaseTime As Long _
) As T
generic<typename T>
T Update(
	T obj, 
	long long leaseTime
)
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.
leaseTime (Int64)
The requested lease time of the updated entity, in milliseconds; 0 means retain the original lease.
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)