You are correct, Looking into code it just returns a max pool size. Its not 
point in time value.

On Friday, August 29, 2014 8:08:14 PM UTC+1, Jing Chen wrote:
>
> Hi 
>
> We are using OrientDB 1.7.8. 
>
> In my code, I created a connection pool using ODatabaseDocumentPool. I was 
> trying to monitor the usage of my connection pool. According to the 
> documentation, it seems that I can use this function
>
> ODatabaseDocumentPool 
> <http://www.orientechnologies.com/javadoc/latest/com/orientechnologies/orient/core/db/document/ODatabaseDocumentPool.html>
> .getAvailableConnections(String,String)
>
> to get the current usage, but it always returns the maximum pool size. 
> Looking at the implementation of this function in ODatabasePoolBase. It is 
> something like this
>
>   public int getAvailableConnections(final String name, final String 
> userName) {
>     setup();
>     return dbPool.getMaxConnections(name, userName);
>   }
>
> Is this a bug or should I use another function to get the available 
> connections?
>
> Thanks,
> Jing
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to