
net.dona.doip.client.ConnectionAndPool Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of doip-sdk Show documentation
Show all versions of doip-sdk Show documentation
DOIP Software Development Kit that implements DOIP v2 Specification.
package net.dona.doip.client;
import net.dona.doip.client.transport.DoipConnection;
import net.dona.doip.client.transport.DoipConnectionPool;
/**
* Used internally by {@link DoipClient} to manage pools of connections.
*/
public class ConnectionAndPool {
private final DoipConnection connection;
private final DoipConnectionPool pool;
public ConnectionAndPool(DoipConnectionPool pool) {
this.connection = pool.get();
this.pool = pool;
}
public void releaseConnection() throws InterruptedException {
pool.release(connection);
}
public DoipConnection getConnection() { return connection; }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy