public class Lockable extends Object
Constructor and Description |
---|
Lockable() |
Modifier and Type | Method and Description |
---|---|
protected void |
check()
Checks to see if the object has been locked.
|
protected void |
lock()
Invokes
check() , then sets the locked flag. |
public Lockable()
protected void check()
IllegalStateException
- if lock()
has been invoked.protected void lock()
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.