Package io.milton.http
Interface LockManager
public interface LockManager
-
Method Summary
Modifier and TypeMethodDescriptiongetCurrentToken(LockableResource resource) lock(LockTimeout timeout, LockInfo lockInfo, LockableResource resource) refresh(String token, LockableResource resource) voidunlock(String tokenId, LockableResource resource)
-
Method Details
-
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
-