public class Lock
extends java.lang.Object
implements java.io.Serializable
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() |
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()