ontopoly
Class LockManager.Lock

java.lang.Object
  extended by ontopoly.LockManager.Lock
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
LockManager

public static class LockManager.Lock
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
LockManager.Lock(java.lang.String lockedBy, java.lang.String lockKey)
           
 
Method Summary
 boolean expired(long expiryTime, long lockTimeSpan)
           
 java.lang.String getLockedBy()
           
 java.lang.String getLockKey()
           
 long getLockTime()
           
 boolean ownedBy(java.lang.String ownerId)
           
 void setLockTime(long lockedTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockManager.Lock

public LockManager.Lock(java.lang.String lockedBy,
                        java.lang.String lockKey)
Method Detail

getLockedBy

public java.lang.String getLockedBy()

getLockTime

public long getLockTime()

setLockTime

public void setLockTime(long lockedTime)

getLockKey

public java.lang.String getLockKey()

expired

public boolean expired(long expiryTime,
                       long lockTimeSpan)

ownedBy

public boolean ownedBy(java.lang.String ownerId)


Copyright © 2000-2012 Ontopia.