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
Modifier and TypeMethodDescriptionGet the lock handler for the current handled protocol.boolean
isLockingSupported
(String protocol) Check if a lock handler can be provided for a specific protocol.
-
Method Details
-
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
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.
-