Class LockingDirectoryBackend
- java.lang.Object
-
- technology.openpool.ldap.adapter.backend.ProxyDirectoryBackend
-
- technology.openpool.ldap.adapter.backend.LockingDirectoryBackend
-
- All Implemented Interfaces:
DirectoryBackend,NestedDirectoryBackend
public class LockingDirectoryBackend extends ProxyDirectoryBackend
-
-
Field Summary
-
Fields inherited from class technology.openpool.ldap.adapter.backend.ProxyDirectoryBackend
config, directoryBackend
-
-
Constructor Summary
Constructors Constructor Description LockingDirectoryBackend(ServerConfiguration config, NestedDirectoryBackend directoryBackend)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwithReadAccess(Runnable block)Check if the caches need a reset.<T> TwithReadAccess(Supplier<T> block)Check if the caches need a reset.voidwithWriteAccess(Runnable block)Check if the caches need a reset.<T> TwithWriteAccess(Supplier<T> block)Check if the caches need a reset.-
Methods inherited from class technology.openpool.ldap.adapter.backend.ProxyDirectoryBackend
dropAllGroups, dropAllUsers, dropGroup, dropMembership, dropUser, getAllGroups, getAllGroups, getAllUsers, getAllUsers, getAuthenticatedUser, getDirectChildGroupsOfGroup, getDirectGroupsOfUser, getDirectParentGroupsOfGroup, getDirectUsersOfGroup, getGroup, getId, getMemberships, getTransitiveChildGroupsOfGroup, getTransitiveGroupsOfUser, getTransitiveParentGroupsOfGroup, getTransitiveUsersOfGroup, getUser, requireReset, runQueryExpression, shutdown, startup, upsertAllGroups, upsertAllGroups, upsertAllUsers, upsertAllUsers, upsertGroup, upsertMembership, upsertUser, upsertUser
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface technology.openpool.ldap.adapter.api.directory.NestedDirectoryBackend
acquireDbLock, releaseDbLock
-
-
-
-
Constructor Detail
-
LockingDirectoryBackend
public LockingDirectoryBackend(ServerConfiguration config, NestedDirectoryBackend directoryBackend)
-
-
Method Detail
-
withReadAccess
public <T> T withReadAccess(Supplier<T> block)
Description copied from interface:NestedDirectoryBackendCheck if the caches need a reset.- Specified by:
withReadAccessin interfaceNestedDirectoryBackend- Overrides:
withReadAccessin classProxyDirectoryBackend- Parameters:
block- the supplier object executed within the session- Returns:
- the result of the supplier code block
-
withReadAccess
public void withReadAccess(Runnable block)
Description copied from interface:NestedDirectoryBackendCheck if the caches need a reset.- Specified by:
withReadAccessin interfaceNestedDirectoryBackend- Overrides:
withReadAccessin classProxyDirectoryBackend- Parameters:
block- the runnable object executed within the session
-
withWriteAccess
public <T> T withWriteAccess(Supplier<T> block)
Description copied from interface:NestedDirectoryBackendCheck if the caches need a reset.- Specified by:
withWriteAccessin interfaceNestedDirectoryBackend- Overrides:
withWriteAccessin classProxyDirectoryBackend- Parameters:
block- the supplier object executed within the session- Returns:
- the result of the supplier code block
-
withWriteAccess
public void withWriteAccess(Runnable block)
Description copied from interface:NestedDirectoryBackendCheck if the caches need a reset.- Specified by:
withWriteAccessin interfaceNestedDirectoryBackend- Overrides:
withWriteAccessin classProxyDirectoryBackend- Parameters:
block- the runnable object executed within the session
-
-