org.codehaus.wadi.core
Class JDK5ConcurrentMotableMap

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

public class JDK5ConcurrentMotableMap
extends java.lang.Object
implements ConcurrentMotableMap

Version:
$Revision: 1538 $

Constructor Summary
JDK5ConcurrentMotableMap()
           
 
Method Summary
 Motable acquire(java.lang.String id)
           
 Motable acquireExclusive(java.lang.String id, long exclusiveSessionLockWaitTime)
           
 Motable get(java.lang.String id)
           
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()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JDK5ConcurrentMotableMap

public JDK5ConcurrentMotableMap()
Method Detail

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