com.sleepycat.je.txn
Class LockResult

java.lang.Object
  extended by com.sleepycat.je.txn.LockResult

public class LockResult
extends Object

This class is a container to encapsulate a LockGrantType and a WriteLockInfo so that they can both be returned from writeLock.


Constructor Summary
LockResult(LockGrantType grant, WriteLockInfo info)
           
 
Method Summary
 void copyAbortInfo(WriteLockInfo fromInfo)
           
 void copyWriteLockInfo(LockResult fromResult)
           
 void copyWriteLockInfo(WriteLockInfo fromInfo)
          Used to copy write lock info when an LSN is changed.
 LockGrantType getLockGrant()
           
 WriteLockInfo getWriteLockInfo()
          Returns the write lock info for a transactional write lock that was granted.
 void setAbortLsn(long abortLsn, boolean abortKnownDeleted)
           
 void setAbortLsn(long abortLsn, boolean abortKnownDeleted, boolean createdThisTxn)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockResult

public LockResult(LockGrantType grant,
                  WriteLockInfo info)
Method Detail

getLockGrant

public LockGrantType getLockGrant()

setAbortLsn

public void setAbortLsn(long abortLsn,
                        boolean abortKnownDeleted)

setAbortLsn

public void setAbortLsn(long abortLsn,
                        boolean abortKnownDeleted,
                        boolean createdThisTxn)

copyAbortInfo

public void copyAbortInfo(WriteLockInfo fromInfo)

copyWriteLockInfo

public void copyWriteLockInfo(LockResult fromResult)

copyWriteLockInfo

public void copyWriteLockInfo(WriteLockInfo fromInfo)
Used to copy write lock info when an LSN is changed.


getWriteLockInfo

public WriteLockInfo getWriteLockInfo()
Returns the write lock info for a transactional write lock that was granted. Null is returned if: - no lock was granted, or - the lock granted is not a write lock, or - the locker was non-transactional.



Copyright (c) 2004-2012 Oracle. All rights reserved.