public class Lock
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
comment
the comment provided during the lock operation
|
private long |
creationDate
the date when the lock was created
|
private long |
expirationDate
the date when the lock will expire
|
private java.lang.String |
owner
the owner of the lock
|
private java.lang.String |
path
the path of the locked item
|
private static long |
serialVersionUID |
private java.lang.String |
token
the token provided during the lock operation
|
Constructor and Description |
---|
Lock(java.lang.String owner,
java.lang.String path,
java.lang.String token,
java.lang.String comment,
long creationDate,
long expirationDate)
this constructor should only called from JNI code
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getComment() |
java.util.Date |
getCreationDate() |
java.util.Date |
getExpirationDate() |
java.lang.String |
getOwner() |
java.lang.String |
getPath() |
java.lang.String |
getToken() |
private static final long serialVersionUID
private java.lang.String owner
private java.lang.String path
private java.lang.String token
private java.lang.String comment
private long creationDate
private long expirationDate
public Lock(java.lang.String owner, java.lang.String path, java.lang.String token, java.lang.String comment, long creationDate, long expirationDate)
owner
- the owner of the lockpath
- the path of the locked itemtoken
- the lock tokencomment
- the lock commentcreationDate
- the date when the lock was createdexpirationDate
- the date when the lock will expirepublic java.lang.String getOwner()
public java.lang.String getPath()
public java.lang.String getToken()
public java.lang.String getComment()
public java.util.Date getCreationDate()
public java.util.Date getExpirationDate()