public class OPartitionedDatabasePoolFactory extends OOrientListenerAbstract
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.
Constructor and Description |
---|
OPartitionedDatabasePoolFactory() |
OPartitionedDatabasePoolFactory(int capacity) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
OPartitionedDatabasePool |
get(String url,
String userName,
String userPassword) |
int |
getMaxPoolSize() |
Collection<OPartitionedDatabasePool> |
getPools() |
boolean |
isClosed() |
void |
onShutdown() |
void |
reset() |
void |
setMaxPoolSize(int maxPoolSize) |
onStartup, onStorageRegistered, onStorageUnregistered
public OPartitionedDatabasePoolFactory()
public OPartitionedDatabasePoolFactory(int capacity)
public int getMaxPoolSize()
public void setMaxPoolSize(int maxPoolSize)
public void reset()
public OPartitionedDatabasePool get(String url, String userName, String userPassword)
public Collection<OPartitionedDatabasePool> getPools()
public void close()
public boolean isClosed()
public void onShutdown()
onShutdown
in interface OOrientListener
onShutdown
in interface OOrientShutdownListener
onShutdown
in class OOrientListenerAbstract
Copyright © 2009–2020 OrientDB. All rights reserved.