From 274fa4aac58eb48c20f1bfc712107bafe90444c2 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Wed, 24 Sep 2008 10:49:39 +0000 Subject: [PATCH] A little bit of duplication to help understanding of asynchronous operation --- src/main/java/org/jboss/netty/channel/Channel.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/org/jboss/netty/channel/Channel.java b/src/main/java/org/jboss/netty/channel/Channel.java index 2554bf88cd..9051e70bd5 100644 --- a/src/main/java/org/jboss/netty/channel/Channel.java +++ b/src/main/java/org/jboss/netty/channel/Channel.java @@ -40,6 +40,14 @@ import java.util.UUID; * associated with the channel. * * + *

All I/O operations are asynchronous.

+ * + * All I/O operations in Netty are asynchronous. It means any I/O calls will + * return immediately with no guarantee that the requested I/O operation has + * been completed at the end of the call. Instead, you will be returned with + * a {@link ChannelFuture} instance which tells you when the requested I/O + * operation has succeeded, failed, or canceled. + * * @author The Netty Project (netty-dev@lists.jboss.org) * @author Trustin Lee (tlee@redhat.com) *