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, wait
deleteAllOlderThan, deleteRecord, exists, exists, getAllIdentifiers, getLastModified, getLength, read, touch, touchAsync, write, writeAsync
public 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 Backend
dataStore
- CachingDataStore
homeDir
- path of repository home dir.config
- path of config property file.DataStoreException
public void close() throws DataStoreException
close
in interface Backend
DataStoreException
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"