Class ConnectionPool
- java.lang.Object
-
- de.gematik.ti.epa.vzd.gem.invoker.ConnectionPool
-
- All Implemented Interfaces:
IConnectionPool
public class ConnectionPool extends java.lang.Object implements IConnectionPool
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IConnectionPool
createConnectionPool(int size)
int
getAvailableConnectionSize()
GemApiClient
getConnection()
int
getConnectionSize()
int
getUsedConnectionSize()
void
releaseConnection(GemApiClient gemApiClient)
void
reset()
-
-
-
Method Detail
-
createConnectionPool
public static IConnectionPool createConnectionPool(int size)
-
getConnection
public GemApiClient getConnection() throws java.lang.InterruptedException
- Specified by:
getConnection
in interfaceIConnectionPool
- Throws:
java.lang.InterruptedException
-
releaseConnection
public void releaseConnection(GemApiClient gemApiClient)
- Specified by:
releaseConnection
in interfaceIConnectionPool
-
reset
public void reset()
- Specified by:
reset
in interfaceIConnectionPool
-
getConnectionSize
public int getConnectionSize()
- Specified by:
getConnectionSize
in interfaceIConnectionPool
-
getAvailableConnectionSize
public int getAvailableConnectionSize()
- Specified by:
getAvailableConnectionSize
in interfaceIConnectionPool
-
getUsedConnectionSize
public int getUsedConnectionSize()
- Specified by:
getUsedConnectionSize
in interfaceIConnectionPool
-
-