public class LocalChannel extends AbstractChannel
Channel为当地运输。
AbstractChannel.AbstractUnsafeChannel.Unsafe| Modifier | Constructor and Description |
|---|---|
|
LocalChannel() |
protected |
LocalChannel(LocalServerChannel parent, LocalChannel peer) |
| Modifier and Type | Method and Description |
|---|---|
ChannelConfig |
config()
返回此频道的配置。
|
protected void |
doBeginRead()
安排读取操作。
|
protected void |
doBind(java.net.SocketAddress localAddress)
将 Channel绑定到SocketAddress
|
protected void |
doClose()
关闭 Channel
|
protected void |
doDeregister()
|
protected void |
doDisconnect()
将此 Channel从其远程对等方断开
|
protected void |
doRegister()
|
protected void |
doWrite(ChannelOutboundBuffer in)
将给定缓冲区的内容刷新到远程对等体。
|
boolean |
isActive()
如果 Channel处于活动状态并已连接,则返回true 。
|
protected boolean |
isCompatible(EventLoop loop)
如果给定的 EventLoop与此实例兼容,则返回true 。
|
boolean |
isOpen()
如果 Channel已打开并且稍后可能会激活,则返回true
|
LocalAddress |
localAddress()
返回此通道绑定的本地地址。
|
protected java.net.SocketAddress |
localAddress0()
返回本地绑定的
SocketAddress 。
|
ChannelMetadata |
metadata()
返回 ChannelMetadata的的Channel其描述的性质Channel 。
|
protected AbstractChannel.AbstractUnsafe |
newUnsafe()
创建一个新的 AbstractChannel.AbstractUnsafe实例,该实例将用于Channel的生命周期
|
LocalServerChannel |
parent()
返回此频道的父级。
|
LocalAddress |
remoteAddress()
返回此通道连接到的远程地址。
|
protected java.net.SocketAddress |
remoteAddress0()
返回 SocketAddress其中Channel被连接到。
|
alloc, bind, bind, bytesBeforeUnwritable, bytesBeforeWritable, close, close, closeFuture, compareTo, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, doShutdownOutput, equals, eventLoop, filterOutboundMessage, flush, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, isWritable, newChannelPipeline, newFailedFuture, newId, newProgressivePromise, newPromise, newSucceededFuture, pipeline, read, toString, unsafe, voidPromise, write, write, writeAndFlush, writeAndFlushattr, hasAttrclone, finalize, getClass, notify, notifyAll, wait, wait, waitattr, hasAttrpublic LocalChannel()
protected LocalChannel(LocalServerChannel parent, LocalChannel peer)
public ChannelMetadata metadata()
Channel复制的描述
ChannelMetadata的的Channel其描述的性质Channel 。
public ChannelConfig config()
Channel
public LocalServerChannel parent()
Channel复制的描述
parent接口
Channel
parent类
AbstractChannel
null如果此频道没有父频道。
public LocalAddress localAddress()
Channel复制的描述
SocketAddress被假定为更具体的类型,如InetSocketAddress以检索详细信息。
localAddress在界面
Channel
localAddress在课堂上
AbstractChannel
null如果这个频道没有绑定。
public LocalAddress remoteAddress()
Channel复制的描述
SocketAddress被假定为更具体的类型,如InetSocketAddress以检索详细信息。
remoteAddress ,界面
Channel
remoteAddress在课堂上
AbstractChannel
null如果此通道未连接。
如果此通道未连接,但它可以接收来自任意远程地址的消息(例如DatagramChannel ,请使用DefaultAddressedEnvelope.recipient()来确定收到消息的来源,因为此方法将返回null 。
protected AbstractChannel.AbstractUnsafe newUnsafe()
AbstractChannel
AbstractChannel.AbstractUnsafe实例,该实例将用于Channel的生命周期
newUnsafe在课堂上
AbstractChannel
protected boolean isCompatible(EventLoop loop)
AbstractChannel
EventLoop与此实例兼容,则返回true 。
isCompatible在课堂上
AbstractChannel
protected java.net.SocketAddress localAddress0()
AbstractChannel
SocketAddress 。
localAddress0在课堂上
AbstractChannel
protected java.net.SocketAddress remoteAddress0()
AbstractChannel
SocketAddress其中Channel被连接到。
remoteAddress0在课堂上
AbstractChannel
protected void doRegister()
throws java.lang.Exception
AbstractChannel
doRegister在课堂上
AbstractChannel
java.lang.Exception
protected void doBind(java.net.SocketAddress localAddress)
throws java.lang.Exception
AbstractChannel
Channel绑定到SocketAddress
doBind在课堂上
AbstractChannel
java.lang.Exception
protected void doDisconnect()
throws java.lang.Exception
AbstractChannel
Channel从其远程对等端断开
doDisconnect在课堂上
AbstractChannel
java.lang.Exception
protected void doClose()
throws java.lang.Exception
AbstractChannel
Channel
doClose在课堂上
AbstractChannel
java.lang.Exception
protected void doDeregister()
throws java.lang.Exception
AbstractChannel
doDeregister在课堂上
AbstractChannel
java.lang.Exception
protected void doBeginRead()
throws java.lang.Exception
AbstractChannel
doBeginRead在
AbstractChannel
java.lang.Exception
protected void doWrite(ChannelOutboundBuffer in) throws java.lang.Exception
AbstractChannel
doWrite在课堂上
AbstractChannel
java.lang.Exception
Copyright © 2008–2018 The Netty Project. All rights reserved.