public interface NonBlockingConnPool
extends java.io.Closeable
| Modifier and Type | Field and Description |
|---|---|
static io.netty.util.AttributeKey<java.lang.String> |
ATTR_KEY_NODE |
| Modifier and Type | Method and Description |
|---|---|
io.netty.channel.Channel |
lease()
Get the connection immediately (don't block) or null.
|
int |
lease(java.util.List<io.netty.channel.Channel> conns,
int maxCount)
Get multiple connections immediately (don't block).
|
void |
release(io.netty.channel.Channel conn)
Release the connection back into the pool
|
void |
release(java.util.List<io.netty.channel.Channel> conns)
Release the connections back into the pool
|
io.netty.channel.Channel lease()
throws ConnLeaseException
ConnLeaseException - if no connections are in the pool and was unable to create new connectionint lease(java.util.List<io.netty.channel.Channel> conns,
int maxCount)
throws ConnLeaseException
conns - The output buffer to store the leased connectionsmaxCount - The count limitConnLeaseException - if no connections are in the pool and was unable to create new connectionvoid release(io.netty.channel.Channel conn)
void release(java.util.List<io.netty.channel.Channel> conns)