[#2323] Make it clear a Channel must be closed to release all resources
Motivation: Ensure the user know the Channel must be closed to release resources like filehandles. Modifications: Add some extra javadoc. Result: More clear documentation
This commit is contained in:
parent
5fa29f9a53
commit
ba201f61ea
@ -69,6 +69,12 @@ import java.net.SocketAddress;
|
|||||||
* transport. Down-cast the {@link Channel} to sub-type to invoke such
|
* transport. Down-cast the {@link Channel} to sub-type to invoke such
|
||||||
* operations. For example, with the old I/O datagram transport, multicast
|
* operations. For example, with the old I/O datagram transport, multicast
|
||||||
* join / leave operations are provided by {@link DatagramChannel}.
|
* join / leave operations are provided by {@link DatagramChannel}.
|
||||||
|
*
|
||||||
|
* <h3>Release resources</h3>
|
||||||
|
* <p>
|
||||||
|
* It is important to call {@link #close()} or {@link #close(ChannelPromise)} to release all
|
||||||
|
* resources once you are done with the {@link Channel}. This ensures all resources are
|
||||||
|
* released in a proper way, i.e. filehandles.
|
||||||
*/
|
*/
|
||||||
public interface Channel extends AttributeMap, Comparable<Channel> {
|
public interface Channel extends AttributeMap, Comparable<Channel> {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user