org.codehaus.wadi.core
Class OswegoConcurrentMotableMap

java.lang.Object
  extended by org.codehaus.wadi.core.OswegoConcurrentMotableMap
All Implemented Interfaces:
ConcurrentMotableMap

public class OswegoConcurrentMotableMap
extends java.lang.Object
implements ConcurrentMotableMap

Version:
$Revision: 1538 $

Constructor Summary
OswegoConcurrentMotableMap()
           
 
Method Summary
 Motable acquire(java.lang.String id)
           
 Motable acquireExclusive(java.lang.String id, long exclusiveSessionLockWaitTime)
           
protected  java.util.concurrent.locks.Lock getExclusiveLock(Motable motable)
           
 java.util.Set getNames()
           
protected  java.util.concurrent.locks.Lock getSharedLock(Motable motable)
           
 boolean isEmpty()
           
 void put(java.lang.String name, Motable motable)
           
 void release(Motable motable)
           
 void releaseExclusive(Motable motable)
           
 void remove(java.lang.String name)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OswegoConcurrentMotableMap

public OswegoConcurrentMotableMap()
Method Detail

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 © 2008. All Rights Reserved.