public class Lock extends java.lang.Object
A simple class acting as lock.
Instances of this class are used by some configuration classes to synchronize themselves.
| Constructor | Description |
|---|---|
Lock(java.lang.String name) |
Creates a new instance of
Lock with the specified name. |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getName() |
Returns the name of this lock.
|
java.lang.String |
toString() |
Returns a string representation of this object.
|
public Lock(java.lang.String name)
Lock with the specified name.name - the name of this lockpublic java.lang.String getName()
public java.lang.String toString()
toString in class java.lang.Object