This commit is contained in:
Trustin Lee 2012-08-29 21:52:39 +09:00
parent d03de0f3ca
commit 9580c417c6

View File

@ -16,6 +16,9 @@
package io.netty.channel.socket;
import io.netty.channel.ChannelConfig;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInputShutdownEvent;
import java.net.Socket;
import java.net.StandardSocketOptions;
@ -136,7 +139,9 @@ public interface SocketChannelConfig extends ChannelConfig {
/**
* Sets whether the channel should not close itself when its remote peer shuts down output to
* make the connection half-closed. If {@code true} the connection is not closed when the
* remote peer shuts down output. If {@code false}, the connection is closed automatically.
* remote peer shuts down output. Instead, {@link ChannelHandler#userEventTriggered(ChannelHandlerContext, Object)}
* is invoked with a {@link ChannelInputShutdownEvent} object. If {@code false}, the connection
* is closed automatically.
*/
void setAllowHalfClosure(boolean allowHalfClosure);
}