public class OPartitionedObjectPoolFactory<K,T> extends OOrientListenerAbstract
Modifier and Type | Class and Description |
---|---|
static interface |
OPartitionedObjectPoolFactory.ObjectFactoryFactory<K,T> |
Constructor and Description |
---|
OPartitionedObjectPoolFactory(OPartitionedObjectPoolFactory.ObjectFactoryFactory<K,T> objectFactoryFactory) |
OPartitionedObjectPoolFactory(OPartitionedObjectPoolFactory.ObjectFactoryFactory<K,T> objectFactoryFactory,
int capacity) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
OPartitionedObjectPool<T> |
get(K key) |
int |
getMaxPartitions() |
int |
getMaxPoolSize() |
Collection<OPartitionedObjectPool<T>> |
getPools() |
void |
onShutdown() |
void |
setMaxPartitions(int maxPartitions) |
void |
setMaxPoolSize(int maxPoolSize) |
onStartup, onStorageRegistered, onStorageUnregistered
public OPartitionedObjectPoolFactory(OPartitionedObjectPoolFactory.ObjectFactoryFactory<K,T> objectFactoryFactory)
public OPartitionedObjectPoolFactory(OPartitionedObjectPoolFactory.ObjectFactoryFactory<K,T> objectFactoryFactory, int capacity)
public int getMaxPoolSize()
public void setMaxPoolSize(int maxPoolSize)
public OPartitionedObjectPool<T> get(K key)
public int getMaxPartitions()
public void setMaxPartitions(int maxPartitions)
public Collection<OPartitionedObjectPool<T>> getPools()
public void close()
public void onShutdown()
onShutdown
in interface OOrientListener
onShutdown
in interface OOrientShutdownListener
onShutdown
in class OOrientListenerAbstract
Copyright © 2009–2020 OrientDB. All rights reserved.