Interface LockHandlerFactoryPluginExtension
-
- All Superinterfaces:
PluginExtension
- All Known Subinterfaces:
URLStreamHandlerWithLockPluginExtension
@API(type=EXTENDABLE, src=PUBLIC) public interface LockHandlerFactoryPluginExtension extends PluginExtension
Extension used for locking resources from a specific protocol- Since:
- 13.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LockHandler
getLockHandler()
Get the lock handler for the current handled protocol.boolean
isLockingSupported(java.lang.String protocol)
Check if a lock handler can be provided for a specific protocol.
-
-
-
Method Detail
-
getLockHandler
LockHandler getLockHandler()
Get the lock handler for the current handled protocol. Might benull
if not supported.- Returns:
- The lock handler for this extension, or
null
if not supported.
-
isLockingSupported
boolean isLockingSupported(java.lang.String protocol)
Check if a lock handler can be provided for a specific protocol.- Parameters:
protocol
- The URL protocol (like "http" or "file")- Returns:
true
if this extension can return a lock handler for the protocol.
-
-