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