org.codehaus.wadi.core
Class OswegoConcurrentMotableMap
java.lang.Object
org.codehaus.wadi.core.OswegoConcurrentMotableMap
- All Implemented Interfaces:
- ConcurrentMotableMap
public class OswegoConcurrentMotableMap
- extends java.lang.Object
- implements ConcurrentMotableMap
- Version:
- $Revision: 1538 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OswegoConcurrentMotableMap
public OswegoConcurrentMotableMap()
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)
Copyright © 2010. All Rights Reserved.