public interface WebResourceLockSet
WebResourceSet implementations that wish to provide locking functionality.| Modifier and Type | Interface and Description |
|---|---|
static class |
WebResourceLockSet.ResourceLock |
| Modifier and Type | Method and Description |
|---|---|
WebResourceLockSet.ResourceLock |
lockForRead(java.lang.String path)
Lock the resource at the provided path for reading.
|
WebResourceLockSet.ResourceLock |
lockForWrite(java.lang.String path)
Lock the resource at the provided path for writing.
|
void |
unlockForRead(WebResourceLockSet.ResourceLock resourceLock)
Release a read lock from the resource associated with the given
WebResourceLockSet.ResourceLock. |
void |
unlockForWrite(WebResourceLockSet.ResourceLock resourceLock)
Release the write lock from the resource associated with the given
WebResourceLockSet.ResourceLock. |
WebResourceLockSet.ResourceLock lockForRead(java.lang.String path)
path - The path to the resource to be locked for readingWebResourceLockSet.ResourceLock that must be passed to unlockForRead(ResourceLock) to release the lockvoid unlockForRead(WebResourceLockSet.ResourceLock resourceLock)
WebResourceLockSet.ResourceLock.resourceLock - The WebResourceLockSet.ResourceLock associated with the resource for which a read lock should be
releasedWebResourceLockSet.ResourceLock lockForWrite(java.lang.String path)
path - The path to the resource to be locked for writingWebResourceLockSet.ResourceLock that must be passed to unlockForWrite(ResourceLock) to release the lockvoid unlockForWrite(WebResourceLockSet.ResourceLock resourceLock)
WebResourceLockSet.ResourceLock.resourceLock - The WebResourceLockSet.ResourceLock associated with the resource for which the write lock should be
releasedCopyright © 2000-2024 Apache Software Foundation.
Apache Tomcat, Tomcat, Apache, the Apache Tomcat logo and the Apache logo are either registered trademarks or trademarks of the Apache Software Foundation.