org.codehaus.wadi.core
Class JDK5ConcurrentMotableMap
java.lang.Object
org.codehaus.wadi.core.JDK5ConcurrentMotableMap
- All Implemented Interfaces:
- ConcurrentMotableMap
public class JDK5ConcurrentMotableMap
- extends java.lang.Object
- implements ConcurrentMotableMap
- Version:
- $Revision: 1538 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
JDK5ConcurrentMotableMap
public JDK5ConcurrentMotableMap()
get
public Motable get(java.lang.String id)
- Specified by:
get
in interface ConcurrentMotableMap
acquire
public Motable acquire(java.lang.String id)
- Specified by:
acquire
in interface ConcurrentMotableMap
acquireExclusive
public Motable acquireExclusive(java.lang.String id,
long exclusiveSessionLockWaitTime)
- Specified by:
acquireExclusive
in interface ConcurrentMotableMap
getNames
public java.util.Set getNames()
- Specified by:
getNames
in interface ConcurrentMotableMap
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface ConcurrentMotableMap
put
public void put(java.lang.String name,
Motable motable)
- Specified by:
put
in interface ConcurrentMotableMap
release
public void release(Motable motable)
- Specified by:
release
in interface ConcurrentMotableMap
releaseExclusive
public void releaseExclusive(Motable motable)
- Specified by:
releaseExclusive
in interface ConcurrentMotableMap
remove
public void remove(java.lang.String name)
- Specified by:
remove
in interface ConcurrentMotableMap
size
public int size()
- Specified by:
size
in interface ConcurrentMotableMap
getSharedLock
protected java.util.concurrent.locks.Lock getSharedLock(Motable motable)
getExclusiveLock
protected java.util.concurrent.locks.Lock getExclusiveLock(Motable motable)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2010. All Rights Reserved.