public final class Lock extends Object implements Serializable
Modifier | Constructor and Description |
---|---|
protected |
Lock()
Creates new instance.
|
|
Lock(String lockName,
String message,
boolean locked,
Date timestamp)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
String |
getLockName()
Returns the name of the lock.
|
String |
getMessage()
Returns the lock message.
|
Date |
getTimestamp()
Returns the lock timestamp.
|
boolean |
isLocked()
Returns true if locked.
|
protected Lock()
public Lock(String lockName, String message, boolean locked, Date timestamp)
lockName
- message
- locked
- timestamp
- NullPointerException
- if lockName
or timestamp
is nullpublic String getLockName()
public String getMessage()
public boolean isLocked()
public Date getTimestamp()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.