public abstract class AbstractDataStore extends Object implements LinkedDataStore
| Modifier and Type | Field and Description |
|---|---|
protected FastBitSet |
locks |
protected static boolean |
SAFE_MODE |
| Constructor and Description |
|---|
AbstractDataStore() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
checkHandle(int handle)
Check handle validity
|
boolean |
isLocked(int handle)
Check if the data associated with a given handle is locked
|
void |
lock(int handle)
Lock the data associated to a given handle
|
void |
unlock(int handle)
Unlock the data associated to a given handle
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdelete, first, init, next, previous, replace, retrieve, storeclose, commitChanges, commitChanges, getAbsoluteStoreUsage, getStoreUsage, sizeprotected static final boolean SAFE_MODE
protected FastBitSet locks
protected abstract void checkHandle(int handle)
throws DataStoreException
handle - DataStoreExceptionpublic final boolean isLocked(int handle)
throws DataStoreException
LinkedDataStoreisLocked in interface LinkedDataStoreDataStoreException - on storage error or invalid handlepublic final void lock(int handle)
throws DataStoreException
LinkedDataStorelock in interface LinkedDataStoreDataStoreException - on storage error or invalid handlepublic final void unlock(int handle)
throws DataStoreException
LinkedDataStoreunlock in interface LinkedDataStoreDataStoreException - on storage error or invalid handleCopyright © 2019. All rights reserved.