Package com.j_spaces.core.client
Class UnderTxnLockedObject
java.lang.Object
com.j_spaces.core.client.UnderTxnLockedObject
- All Implemented Interfaces:
Serializable
UnderTxnLockedObject holds the details on Objects that are locked by a specific transaction. this
object returned in a list from ITransactionDetailsProvider.getLockedObjects() it contains: UId -
to retrieve the locked Object. lockType - READ or WRITE operationType - the operation that done
with this object under Txn (read/write/update..) className - the locked Object class name
- Since:
- 5.2
- Version:
- 1.0
- Author:
- Mordy Arnon Gigaspaces.com
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intLock Types: READ lockstatic final intWRITE lock -
Constructor Summary
ConstructorsConstructorDescriptionUnderTxnLockedObject(Object UId, int lockType, int operationType, String className) -
Method Summary
-
Field Details
-
LOCK_TYPE_READ_LOCK
public static final int LOCK_TYPE_READ_LOCKLock Types: READ lock- See Also:
-
LOCK_TYPE_WRITE_LOCK
public static final int LOCK_TYPE_WRITE_LOCKWRITE lock- See Also:
-
-
Constructor Details
-
UnderTxnLockedObject
- Parameters:
UId-lockType-operationType-className-
-
-
Method Details
-
getClassName
- Returns:
- the class name of the locked object.
-
getLockType
public int getLockType()- Returns:
- the type of the Lock: READ or WRITE
-
getOperationType
public int getOperationType()useSpaceOperationsconstants.- Returns:
- the operation on the locked object
-
getUid
- Returns:
- the object UId to retrieve the Object itself only by dirty read because it is locked
-