Interface ChannelPool
- All Superinterfaces:
java.lang.AutoCloseable, java.io.Closeable
- All Known Implementing Classes:
FixedChannelPool, SimpleChannelPool
public interface ChannelPool
extends java.io.Closeable
Allows to acquire and release
Channel and so act as a pool of these.-
Method Summary
Modifier and TypeMethodDescriptionacquire()Acquire aChannelfrom thisChannelPool.Acquire aChannelfrom thisChannelPool.voidclose()Future<java.lang.Void> Release aChannelback to thisChannelPool.Future<java.lang.Void> Release aChannelback to thisChannelPool.
-
Method Details
-
acquire
-
acquire
-
release
-
release
-
close
void close()- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-