railo.commons.io.res.util
Class ResourceLockImpl

java.lang.Object
  extended by railo.commons.io.res.util.ResourceLockImpl
All Implemented Interfaces:
Serializable, ResourceLock

public final class ResourceLockImpl
extends Object
implements ResourceLock

See Also:
Serialized Form

Constructor Summary
ResourceLockImpl(long timeout, boolean caseSensitive)
           
 
Method Summary
 long getLockTimeout()
           
 void lock(Resource res)
           
 void read(Resource res)
           
 void setCaseSensitive(boolean caseSensitive)
           
 void setLockTimeout(long lockTimeout)
           
 void unlock(Resource res)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceLockImpl

public ResourceLockImpl(long timeout,
                        boolean caseSensitive)
Method Detail

lock

public void lock(Resource res)
Specified by:
lock in interface ResourceLock

unlock

public void unlock(Resource res)
Specified by:
unlock in interface ResourceLock

read

public void read(Resource res)
Specified by:
read in interface ResourceLock

getLockTimeout

public long getLockTimeout()
Specified by:
getLockTimeout in interface ResourceLock

setLockTimeout

public void setLockTimeout(long lockTimeout)
Specified by:
setLockTimeout in interface ResourceLock
Parameters:
lockTimeout - the lockTimeout to set

setCaseSensitive

public void setCaseSensitive(boolean caseSensitive)
Parameters:
caseSensitive - the caseSensitive to set


Copyright © 2012 Railo