Package dev.getelements.elements.rt
Class WeakReferenceLockSetService
java.lang.Object
dev.getelements.elements.rt.WeakReferenceLockSetService
- All Implemented Interfaces:
LockSetService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPathReadMonitor
(Path path) Gets a singleMonitor
for the suppliedResourceId
(for reading).getPathWriteMonitor
(Path path) Gets a singleMonitor
for the suppliedResourceId
(for writing).getResourceIdReadMonitor
(ResourceId resourceId) Gets a singleMonitor
for the suppliedResourceId
(for reading).getResourceIdWriteMonitor
(ResourceId resourceId) Gets a singleMonitor
for the suppliedResourceId
(for writing).void
Logs the status of theLockSetService
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.getelements.elements.rt.LockSetService
getPathReadMonitor, getPathWriteMonitor, getResourceIdReadMonitor, getResourceIdWriteMonitor
-
Constructor Details
-
WeakReferenceLockSetService
public WeakReferenceLockSetService()
-
-
Method Details
-
logStatus
public void logStatus()Description copied from interface:LockSetService
Logs the status of theLockSetService
.- Specified by:
logStatus
in interfaceLockSetService
-
getPathReadMonitor
Description copied from interface:LockSetService
Gets a singleMonitor
for the suppliedResourceId
(for reading). When requesting aPath
with aPath.WILDCARD
orPath.WILDCARD_RECURSIVE
component, this will essentially acquire all monitors for matching paths.- Specified by:
getPathReadMonitor
in interfaceLockSetService
- Parameters:
path
- thePath
- Returns:
- the
Monitor
locking thosePath
instances
-
getPathWriteMonitor
Description copied from interface:LockSetService
Gets a singleMonitor
for the suppliedResourceId
(for writing). When requesting aPath
with aPath.WILDCARD
orPath.WILDCARD_RECURSIVE
component, this will essentially acquire all monitors for matching paths.- Specified by:
getPathWriteMonitor
in interfaceLockSetService
- Parameters:
path
- thePath
- Returns:
- the
Monitor
locking thosePath
instances
-
getResourceIdReadMonitor
Description copied from interface:LockSetService
Gets a singleMonitor
for the suppliedResourceId
(for reading).- Specified by:
getResourceIdReadMonitor
in interfaceLockSetService
- Parameters:
resourceId
- theResourceId
- Returns:
- the
Monitor
locking thoseResourceId
instances
-
getResourceIdWriteMonitor
Description copied from interface:LockSetService
Gets a singleMonitor
for the suppliedResourceId
(for writing).- Specified by:
getResourceIdWriteMonitor
in interfaceLockSetService
- Parameters:
resourceId
- theResourceId
- Returns:
- the
Monitor
locking thoseResourceId
instances
-