Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.messaging.core.plugin
Class LockMap

    java.lang.Object
      org.jboss.messaging.core.plugin.LockMap

public class LockMap
extends java.lang.Object

A LockMap. This class effectively enables arbitrary objects to be locked It does this by maintaining a mutex for each object in a map When no more locks held, object is removed from the map

Version:
  1.1 LockMap.java,v 1.1 2006/03/28 14:26:18 timfox Exp
Author:
  Tim Fox

Field Summary
`static LockMap` | `instance`
`protected java.util.Map` | `map`

Method Summary
`int` | `getSize()`
`void` | `obtainLock(java.lang.Object obj)`
`void` | `releaseLock(java.lang.Object obj)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### map

    protected java.util.Map map

### instance

    public static LockMap instance

Method Detail

### obtainLock

    public void obtainLock(java.lang.Object obj)

### releaseLock

    public void releaseLock(java.lang.Object obj)

### getSize

    public int getSize()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006 JBoss Inc. All Rights Reserved.