org.apache.jackrabbit.oak.jcr.lock
Class LockImpl

java.lang.Object
  extended by org.apache.jackrabbit.oak.jcr.lock.LockImpl
All Implemented Interfaces:
javax.jcr.lock.Lock

public final class LockImpl
extends Object
implements javax.jcr.lock.Lock


Constructor Summary
LockImpl(SessionContext context, NodeDelegate delegate)
           
 
Method Summary
 String getLockOwner()
           
 String getLockToken()
           
 javax.jcr.Node getNode()
           
 long getSecondsRemaining()
           
 boolean isDeep()
           
 boolean isLive()
           
 boolean isLockOwningSession()
           
 boolean isSessionScoped()
           
 void refresh()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockImpl

public LockImpl(@Nonnull
                SessionContext context,
                @Nonnull
                NodeDelegate delegate)
Method Detail

getNode

public javax.jcr.Node getNode()
Specified by:
getNode in interface javax.jcr.lock.Lock

getLockOwner

public String getLockOwner()
Specified by:
getLockOwner in interface javax.jcr.lock.Lock

isDeep

public boolean isDeep()
Specified by:
isDeep in interface javax.jcr.lock.Lock

isLive

public boolean isLive()
Specified by:
isLive in interface javax.jcr.lock.Lock

getLockToken

public String getLockToken()
Specified by:
getLockToken in interface javax.jcr.lock.Lock

getSecondsRemaining

public long getSecondsRemaining()
Specified by:
getSecondsRemaining in interface javax.jcr.lock.Lock

isSessionScoped

public boolean isSessionScoped()
Specified by:
isSessionScoped in interface javax.jcr.lock.Lock

isLockOwningSession

public boolean isLockOwningSession()
Specified by:
isLockOwningSession in interface javax.jcr.lock.Lock

refresh

public void refresh()
             throws javax.jcr.lock.LockException
Specified by:
refresh in interface javax.jcr.lock.Lock
Throws:
javax.jcr.lock.LockException


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.