Class OResourcePoolFactory<K,T>
java.lang.Object
com.orientechnologies.orient.core.OOrientListenerAbstract
com.orientechnologies.common.concur.resource.OResourcePoolFactory<K,T>
- All Implemented Interfaces:
OOrientListener,OOrientShutdownListener,OOrientStartupListener
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionOResourcePoolFactory(OResourcePoolFactory.ObjectFactoryFactory<K, T> objectFactoryFactory) OResourcePoolFactory(OResourcePoolFactory.ObjectFactoryFactory<K, T> objectFactoryFactory, int capacity) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intintgetPools()voidvoidsetMaxPartitions(int maxPartitions) voidsetMaxPoolSize(int maxPoolSize) Methods inherited from class com.orientechnologies.orient.core.OOrientListenerAbstract
onStartup, onStorageRegistered, onStorageUnregistered
-
Constructor Details
-
OResourcePoolFactory
-
OResourcePoolFactory
public OResourcePoolFactory(OResourcePoolFactory.ObjectFactoryFactory<K, T> objectFactoryFactory, int capacity)
-
-
Method Details
-
getMaxPoolSize
public int getMaxPoolSize() -
setMaxPoolSize
public void setMaxPoolSize(int maxPoolSize) -
get
-
getMaxPartitions
public int getMaxPartitions() -
setMaxPartitions
public void setMaxPartitions(int maxPartitions) -
getPools
-
close
public void close() -
onShutdown
public void onShutdown()- Specified by:
onShutdownin interfaceOOrientListener- Specified by:
onShutdownin interfaceOOrientShutdownListener- Overrides:
onShutdownin classOOrientListenerAbstract
-