Class UnderTxnLockedObject

java.lang.Object
com.j_spaces.core.client.UnderTxnLockedObject
All Implemented Interfaces:
Serializable

public class UnderTxnLockedObject extends Object implements 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 Details

    • LOCK_TYPE_READ_LOCK

      public static final int LOCK_TYPE_READ_LOCK
      Lock Types: READ lock
      See Also:
    • LOCK_TYPE_WRITE_LOCK

      public static final int LOCK_TYPE_WRITE_LOCK
      WRITE lock
      See Also:
  • Constructor Details

    • UnderTxnLockedObject

      public UnderTxnLockedObject(Object UId, int lockType, int operationType, String className)
      Parameters:
      UId -
      lockType -
      operationType -
      className -
  • Method Details

    • getClassName

      public String 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()
      use SpaceOperations constants.
      Returns:
      the operation on the locked object
    • getUid

      public Object getUid()
      Returns:
      the object UId to retrieve the Object itself only by dirty read because it is locked