Package net.dona.doip.client.transport
Class DoipConnectionPool
- java.lang.Object
-
- net.dona.doip.client.transport.DoipConnectionPool
-
public class DoipConnectionPool extends java.lang.Object
Used internally byDoipClient
to manage pools of connections.
-
-
Constructor Summary
Constructors Constructor Description DoipConnectionPool(int maxSize, TransportDoipClient client, ConnectionOptions connectionOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoipConnection
get()
void
release(DoipConnection connection)
void
shutdown()
-
-
-
Constructor Detail
-
DoipConnectionPool
public DoipConnectionPool(int maxSize, TransportDoipClient client, ConnectionOptions connectionOptions)
-
-
Method Detail
-
release
public void release(DoipConnection connection) throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
get
public DoipConnection get()
-
shutdown
public void shutdown()
-
-