Package io.milton.http
Interface LockManager
-
public interface LockManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LockTokengetCurrentToken(LockableResource resource)LockResultlock(LockTimeout timeout, LockInfo lockInfo, LockableResource resource)LockResultrefresh(String token, LockableResource resource)voidunlock(String tokenId, LockableResource resource)
-
-
-
Method Detail
-
lock
LockResult lock(LockTimeout timeout, LockInfo lockInfo, LockableResource resource) throws io.milton.http.exceptions.NotAuthorizedException
- Throws:
io.milton.http.exceptions.NotAuthorizedException
-
refresh
LockResult refresh(String token, LockableResource resource) throws io.milton.http.exceptions.NotAuthorizedException
- Throws:
io.milton.http.exceptions.NotAuthorizedException
-
unlock
void unlock(String tokenId, LockableResource resource) throws io.milton.http.exceptions.NotAuthorizedException
- Throws:
io.milton.http.exceptions.NotAuthorizedException
-
getCurrentToken
LockToken getCurrentToken(LockableResource resource)
-
-