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 singleMonitorfor the suppliedResourceId(for reading).getPathWriteMonitor(Path path) Gets a singleMonitorfor the suppliedResourceId(for writing).getResourceIdReadMonitor(ResourceId resourceId) Gets a singleMonitorfor the suppliedResourceId(for reading).getResourceIdWriteMonitor(ResourceId resourceId) Gets a singleMonitorfor the suppliedResourceId(for writing).voidLogs the status of theLockSetService.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:LockSetServiceLogs the status of theLockSetService.- Specified by:
logStatusin interfaceLockSetService
-
getPathReadMonitor
Description copied from interface:LockSetServiceGets a singleMonitorfor the suppliedResourceId(for reading). When requesting aPathwith aPath.WILDCARDorPath.WILDCARD_RECURSIVEcomponent, this will essentially acquire all monitors for matching paths.- Specified by:
getPathReadMonitorin interfaceLockSetService- Parameters:
path- thePath- Returns:
- the
Monitorlocking thosePathinstances
-
getPathWriteMonitor
Description copied from interface:LockSetServiceGets a singleMonitorfor the suppliedResourceId(for writing). When requesting aPathwith aPath.WILDCARDorPath.WILDCARD_RECURSIVEcomponent, this will essentially acquire all monitors for matching paths.- Specified by:
getPathWriteMonitorin interfaceLockSetService- Parameters:
path- thePath- Returns:
- the
Monitorlocking thosePathinstances
-
getResourceIdReadMonitor
Description copied from interface:LockSetServiceGets a singleMonitorfor the suppliedResourceId(for reading).- Specified by:
getResourceIdReadMonitorin interfaceLockSetService- Parameters:
resourceId- theResourceId- Returns:
- the
Monitorlocking thoseResourceIdinstances
-
getResourceIdWriteMonitor
Description copied from interface:LockSetServiceGets a singleMonitorfor the suppliedResourceId(for writing).- Specified by:
getResourceIdWriteMonitorin interfaceLockSetService- Parameters:
resourceId- theResourceId- Returns:
- the
Monitorlocking thoseResourceIdinstances
-