public class OPartitionedObjectPool<T> extends OOrientListenerAbstract
Modifier and Type | Class and Description |
---|---|
static interface |
OPartitionedObjectPool.ObjectFactory<T> |
static class |
OPartitionedObjectPool.PoolEntry<T> |
Constructor and Description |
---|
OPartitionedObjectPool(OPartitionedObjectPool.ObjectFactory factory,
int maxSize,
int maxPartitions) |
Modifier and Type | Method and Description |
---|---|
OPartitionedObjectPool.PoolEntry<T> |
acquire() |
void |
close() |
int |
getAvailableObjects() |
int |
getCreatedInstances() |
int |
getMaxSize() |
void |
onShutdown() |
void |
onStartup() |
void |
release(OPartitionedObjectPool.PoolEntry<T> entry) |
onStorageRegistered, onStorageUnregistered
public OPartitionedObjectPool(OPartitionedObjectPool.ObjectFactory factory, int maxSize, int maxPartitions)
public OPartitionedObjectPool.PoolEntry<T> acquire()
public void release(OPartitionedObjectPool.PoolEntry<T> entry)
public int getMaxSize()
public void close()
public void onShutdown()
onShutdown
in interface OOrientListener
onShutdown
in interface OOrientShutdownListener
onShutdown
in class OOrientListenerAbstract
public void onStartup()
onStartup
in interface OOrientStartupListener
onStartup
in class OOrientListenerAbstract
public int getAvailableObjects()
public int getCreatedInstances()
Copyright © 2009–2020 OrientDB. All rights reserved.