From a73cdb1a4ae2484a81529e4906c7f897877a13e6 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Wed, 3 Sep 2008 01:30:17 +0000 Subject: [PATCH] Easier example for ChannelConfig downcasting --- .../java/org/jboss/netty/channel/ChannelConfig.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/jboss/netty/channel/ChannelConfig.java b/src/main/java/org/jboss/netty/channel/ChannelConfig.java index 67409ecc76..239e7bb50c 100644 --- a/src/main/java/org/jboss/netty/channel/ChannelConfig.java +++ b/src/main/java/org/jboss/netty/channel/ChannelConfig.java @@ -25,19 +25,19 @@ package org.jboss.netty.channel; import java.io.IOException; import java.util.Map; -import org.jboss.netty.channel.socket.nio.NioSocketChannelConfig; +import org.jboss.netty.channel.socket.SocketChannelConfig; /** * A set of configuration properties of a {@link Channel}. *

- * Please down-cast to the transport-specific configuration type such as - * {@link NioSocketChannelConfig} or use {@link #setOptions(Map)} to set the + * Please down-cast to more specific configuration type such as + * {@link SocketChannelConfig} or use {@link #setOptions(Map)} to set the * transport-specific properties: *

  * Channel ch = ...;
- * NioSocketChannelConfig cfg = (NioSocketChannelConfig) ch.getConfig();
- * cfg.setWriteSpinCount(4);
+ * SocketChannelConfig cfg = (SocketChannelConfig) ch.getConfig();
+ * cfg.setTcpNoDelay(false);
  * 
* * @author The Netty Project (netty-dev@lists.jboss.org)