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, executeWithLock
protected void lock(MailboxSession session, MailboxPath path, boolean writeLock) throws MailboxException
AbstractMailboxPathLocker
protected void unlock(MailboxSession session, MailboxPath path, boolean writeLock) throws MailboxException
AbstractMailboxPathLocker
unlock
in class AbstractMailboxPathLocker
MailboxException
AbstractMailboxPathLocker.unlock(MailboxSession, MailboxPath, boolean)
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.