public final class JVMMailboxPathLocker extends AbstractMailboxPathLocker
MailboxPathLocker implementation which helps to synchronize the access the
same MailboxPath. This is done using one ReentrantReadWriteLock
per MailboxPath so its only usable in a single JVM.MailboxPathLocker.LockAwareExecution<T>| Constructor and Description |
|---|
JVMMailboxPathLocker() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
lock(MailboxSession session,
MailboxPath path,
boolean writeLock)
Perform lock
|
protected void |
unlock(MailboxSession session,
MailboxPath path,
boolean writeLock)
Release lock
|
executeWithLock, executeWithLockprotected void lock(MailboxSession session, MailboxPath path, boolean writeLock) throws MailboxException
AbstractMailboxPathLockerprotected void unlock(MailboxSession session, MailboxPath path, boolean writeLock) throws MailboxException
AbstractMailboxPathLockerunlock in class AbstractMailboxPathLockerMailboxExceptionAbstractMailboxPathLocker.unlock(MailboxSession, MailboxPath, boolean)Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.