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.booleanisLockingSupported(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 benullif not supported.- Returns:
- The lock handler for this extension, or
nullif 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:
trueif this extension can return a lock handler for the protocol.
-