Class OPartitionedDatabasePoolFactory
java.lang.Object
com.orientechnologies.orient.core.OOrientListenerAbstract
com.orientechnologies.orient.core.db.OPartitionedDatabasePoolFactory
- All Implemented Interfaces:
OOrientListener,OOrientShutdownListener,OOrientStartupListener
Factory for
OPartitionedDatabasePool pool, which also works as LRU cache with good
mutlicore architecture support.
In case of remote storage database pool will keep connections to the remote storage till you close pool. So in case of remote storage you should close pool factory at the end of it's usage, it also may be closed on application shutdown but you should not rely on this behaviour.
- Since:
- 06/11/14
- Author:
- Andrey Lomakin (a.lomakin-at-orientdb.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intgetPools()booleanisClosed()voidvoidreset()voidsetMaxPoolSize(int maxPoolSize) Methods inherited from class com.orientechnologies.orient.core.OOrientListenerAbstract
onStartup, onStorageRegistered, onStorageUnregistered
-
Constructor Details
-
OPartitionedDatabasePoolFactory
public OPartitionedDatabasePoolFactory() -
OPartitionedDatabasePoolFactory
public OPartitionedDatabasePoolFactory(int capacity)
-
-
Method Details
-
getMaxPoolSize
public int getMaxPoolSize() -
setMaxPoolSize
public void setMaxPoolSize(int maxPoolSize) -
reset
public void reset() -
get
-
getPools
-
close
public void close() -
isClosed
public boolean isClosed() -
onShutdown
public void onShutdown()- Specified by:
onShutdownin interfaceOOrientListener- Specified by:
onShutdownin interfaceOOrientShutdownListener- Overrides:
onShutdownin classOOrientListenerAbstract
-