Click or drag to resize
SpaceLock Method (Tuple, LockOptions)
Locks the entry stored in the Space which has the key specified in the given Tuple

Namespace: Com.Tibco.As.Space
Assembly: TIBCO.ActiveSpaces.Common (in TIBCO.ActiveSpaces.Common.dll) Version: 2.0.0.0 (2.1.5.12)
Syntax
Tuple Lock(
	Tuple tuple,
	LockOptions lockOpts
)

Parameters

tuple
Type: Com.Tibco.As.SpaceTuple
Tuple containing the key of the entry to lock
lockOpts
Type: Com.Tibco.As.SpaceLockOptions
Used to specify the following:
  • lock wait: amount of time to wait for any lock, blocking the operation, to clear (default setting taken from SpaceDef.getLockWait())
  • forget: whether to return the data of the locked entry (true=do not return the data, default=false)
  • result handler: called, if specified, when the lock operation is complete
  • closure: used to pass data to the result handler

Return Value

Type: Tuple
Tuple if the entry has any values associated with it, null otherwise
See Also