public abstract class AbstractBackend extends java.lang.Object implements Backend
CachingDataStore and is
maintaining the lifecycle of the internal asynchronous write executor.| Constructor and Description |
|---|
AbstractBackend() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close backend and release resources like database connection if any.
|
int |
getAsyncWritePoolSize()
Returns the pool size of the asynchronous write pool executor.
|
void |
init(CachingDataStore dataStore,
java.lang.String homeDir,
java.lang.String config)
This method initialize backend with the configuration.
|
void |
setAsyncWritePoolSize(int asyncWritePoolSize)
Sets the pool size of the asynchronous write pool executor.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeleteAllOlderThan, deleteRecord, exists, exists, getAllIdentifiers, getLastModified, getLength, read, touch, touchAsync, write, writeAsyncpublic int getAsyncWritePoolSize()
public void setAsyncWritePoolSize(int asyncWritePoolSize)
asyncWritePoolSize - pool size of the async write pool executorpublic void init(CachingDataStore dataStore, java.lang.String homeDir, java.lang.String config) throws DataStoreException
init in interface BackenddataStore - CachingDataStorehomeDir - path of repository home dir.config - path of config property file.DataStoreExceptionpublic void close()
throws DataStoreException
close in interface BackendDataStoreExceptionCopyright © 2010 - 2023 Adobe. All Rights Reserved