Package com.ithit.webdav.server
Class LockResult
java.lang.Object
com.ithit.webdav.server.LockResult
Result of
Lock.lock(boolean, boolean, long, java.lang.String)
operation.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
Retrieves timeout.getToken()
Retrieves lock token associated with a lock.void
setTimeout
(long timeout) Sets timeout.void
Sets lock token associated with a lock.
-
Constructor Details
-
LockResult
Initializes new instance.- Parameters:
token
- Lock token associated with a lock.timeout
- Timeout value in milliseconds. -1 means never.
-
-
Method Details
-
getToken
Retrieves lock token associated with a lock.- Returns:
- Lock token.
-
setToken
Sets lock token associated with a lock.- Parameters:
token
- Lock token.
-
getTimeout
public long getTimeout()Retrieves timeout.- Returns:
- Timeout value in milliseconds.
-
setTimeout
public void setTimeout(long timeout) Sets timeout.- Parameters:
timeout
- Timeout value in milliseconds.
-