DefaultISMLocking instead@Deprecated public class JahiaDefaultISMLocking extends Object implements org.apache.jackrabbit.core.state.ISMLocking
DefaultISMLocking includes a fix [QA-9444].
The default strategy is simply to use a single coarse-grained read-write lock over the entire workspace.| Constructor and Description |
|---|
JahiaDefaultISMLocking()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.jackrabbit.core.state.ISMLocking.ReadLock |
acquireReadLock(org.apache.jackrabbit.core.id.ItemId id)
Deprecated.
Increments the reader count and returns the acquired read lock once
there are no more writers or the current writer shares the thread id
with this reader.
|
org.apache.jackrabbit.core.state.ISMLocking.WriteLock |
acquireWriteLock(org.apache.jackrabbit.core.state.ChangeLog changeLog)
Deprecated.
Increments the writer count, sets the writer identifier and returns
the acquired write lock once there are no other active readers or
writers or the current writer shares the thread id with this writer.
|
boolean |
isWriterPreference()
Deprecated.
Returns the writer preference status of this locking strategy.
|
void |
setWriterPreference(boolean preference)
Deprecated.
Sets the writer preference status of this locking strategy.
|
public boolean isWriterPreference()
public void setWriterPreference(boolean preference)
preference - writer preferencepublic org.apache.jackrabbit.core.state.ISMLocking.ReadLock acquireReadLock(org.apache.jackrabbit.core.id.ItemId id)
throws InterruptedException
acquireReadLock in interface org.apache.jackrabbit.core.state.ISMLockingInterruptedExceptionpublic org.apache.jackrabbit.core.state.ISMLocking.WriteLock acquireWriteLock(org.apache.jackrabbit.core.state.ChangeLog changeLog)
throws InterruptedException
acquireWriteLock in interface org.apache.jackrabbit.core.state.ISMLockingInterruptedExceptionCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.