public final class SimpleTaskBalancer extends AbstractTaskBalancer
freeConnections, session| Constructor and Description |
|---|
SimpleTaskBalancer(LinkedBlockingQueue<Connection> initConnections)
Constructor to create a
SimpleLoadBalancer instance. |
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection() |
releaseConnectionpublic SimpleTaskBalancer(LinkedBlockingQueue<Connection> initConnections)
SimpleLoadBalancer instance.initConnections - The list with all opened connections.public Connection getConnection() throws NoSuchConnectionException
getConnection in class AbstractTaskBalancerNoSuchConnectionExceptionCopyright © 2018. All rights reserved.