public class ObjectMutex extends Object
Constructor and Description |
---|
ObjectMutex()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
acquire(long key)
Acquire function for the given key.
|
void |
acquire(String key)
Acquire function for the given key.
|
void |
release(long key)
Release function for the given key.
|
void |
release(String key)
Release function for the given key.
|
public void acquire(long key)
key
- the object keypublic void acquire(String key)
key
- the object keypublic void release(long key)
key
- the object keypublic void release(String key)
key
- the object keyCopyright © 2021. All rights reserved.