C# Класс Helios.Channels.AbstractChannel

Наследование: IChannel
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
BindAsync ( EndPoint localAddress ) : System.Threading.Tasks.Task
CloseAsync ( ) : System.Threading.Tasks.Task
ConnectAsync ( EndPoint remoteAddress ) : System.Threading.Tasks.Task
ConnectAsync ( EndPoint remoteAddress, EndPoint localAddress ) : System.Threading.Tasks.Task
DeregisterAsync ( ) : System.Threading.Tasks.Task
DisconnectAsync ( ) : System.Threading.Tasks.Task
Flush ( ) : IChannel
GetHashCode ( ) : int
Read ( ) : IChannel
ToString ( ) : string
WriteAndFlushAsync ( object message ) : System.Threading.Tasks.Task
WriteAsync ( object message ) : System.Threading.Tasks.Task

Защищенные методы

Метод Описание
AbstractChannel ( IChannel parent ) : System
AbstractChannel ( IChannelId id, IChannel parent ) : System
CacheLocalAddress ( ) : EndPoint
CacheRemoteAddress ( ) : EndPoint
DoBeginRead ( ) : void

ScheduleAsync a read operation.

DoBind ( EndPoint localAddress ) : void

Bind the {@link Channel} to the {@link EndPoint}

DoClose ( ) : void

Close the {@link Channel}

DoDeregister ( ) : void

Deregister the {@link Channel} from its {@link EventLoop}. Sub-classes may override this method

DoDisconnect ( ) : void

Disconnect this {@link Channel} from its remote peer

DoRegister ( ) : void

Is called after the {@link Channel} is registered with its {@link EventLoop} as part of the register process. Sub-classes may override this method

DoWrite ( ChannelOutboundBuffer input ) : void

Flush the content of the given buffer to the remote peer.

FilterOutboundMessage ( object msg ) : object

Invoked when a new message is added to a {@link ChannelOutboundBuffer} of this {@link AbstractChannel}, so that the {@link Channel} implementation converts the message to another. (e.g. heap buffer -> direct buffer)

InvalidateLocalAddress ( ) : void
InvalidateRemoteAddress ( ) : void
IsCompatible ( IEventLoop eventLoop ) : bool

Return {@code true} if the given {@link EventLoop} is compatible with this instance.

NewUnsafe ( ) : IChannelUnsafe

Create a new AbstractUnsafe instance which will be used for the life-time of the IChannel

Описание методов

AbstractChannel() защищенный Метод

protected AbstractChannel ( IChannel parent ) : System
parent IChannel
Результат System

AbstractChannel() защищенный Метод

protected AbstractChannel ( IChannelId id, IChannel parent ) : System
id IChannelId
parent IChannel
Результат System

BindAsync() публичный Метод

public BindAsync ( EndPoint localAddress ) : System.Threading.Tasks.Task
localAddress System.Net.EndPoint
Результат System.Threading.Tasks.Task

CacheLocalAddress() защищенный Метод

protected CacheLocalAddress ( ) : EndPoint
Результат System.Net.EndPoint

CacheRemoteAddress() защищенный Метод

protected CacheRemoteAddress ( ) : EndPoint
Результат System.Net.EndPoint

CloseAsync() публичный Метод

public CloseAsync ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task

ConnectAsync() публичный Метод

public ConnectAsync ( EndPoint remoteAddress ) : System.Threading.Tasks.Task
remoteAddress System.Net.EndPoint
Результат System.Threading.Tasks.Task

ConnectAsync() публичный Метод

public ConnectAsync ( EndPoint remoteAddress, EndPoint localAddress ) : System.Threading.Tasks.Task
remoteAddress System.Net.EndPoint
localAddress System.Net.EndPoint
Результат System.Threading.Tasks.Task

DeregisterAsync() публичный Метод

public DeregisterAsync ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task

DisconnectAsync() публичный Метод

public DisconnectAsync ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task

DoBeginRead() защищенный абстрактный Метод

ScheduleAsync a read operation.
protected abstract DoBeginRead ( ) : void
Результат void

DoBind() защищенный абстрактный Метод

Bind the {@link Channel} to the {@link EndPoint}
protected abstract DoBind ( EndPoint localAddress ) : void
localAddress System.Net.EndPoint
Результат void

DoClose() защищенный абстрактный Метод

Close the {@link Channel}
protected abstract DoClose ( ) : void
Результат void

DoDeregister() защищенный Метод

Deregister the {@link Channel} from its {@link EventLoop}. Sub-classes may override this method
protected DoDeregister ( ) : void
Результат void

DoDisconnect() защищенный абстрактный Метод

Disconnect this {@link Channel} from its remote peer
protected abstract DoDisconnect ( ) : void
Результат void

DoRegister() защищенный Метод

Is called after the {@link Channel} is registered with its {@link EventLoop} as part of the register process. Sub-classes may override this method
protected DoRegister ( ) : void
Результат void

DoWrite() защищенный абстрактный Метод

Flush the content of the given buffer to the remote peer.
protected abstract DoWrite ( ChannelOutboundBuffer input ) : void
input ChannelOutboundBuffer
Результат void

FilterOutboundMessage() защищенный Метод

Invoked when a new message is added to a {@link ChannelOutboundBuffer} of this {@link AbstractChannel}, so that the {@link Channel} implementation converts the message to another. (e.g. heap buffer -> direct buffer)
protected FilterOutboundMessage ( object msg ) : object
msg object
Результат object

Flush() публичный Метод

public Flush ( ) : IChannel
Результат IChannel

GetHashCode() публичный Метод

public GetHashCode ( ) : int
Результат int

InvalidateLocalAddress() защищенный Метод

protected InvalidateLocalAddress ( ) : void
Результат void

InvalidateRemoteAddress() защищенный Метод

protected InvalidateRemoteAddress ( ) : void
Результат void

IsCompatible() защищенный абстрактный Метод

Return {@code true} if the given {@link EventLoop} is compatible with this instance.
protected abstract IsCompatible ( IEventLoop eventLoop ) : bool
eventLoop IEventLoop
Результат bool

NewUnsafe() защищенный абстрактный Метод

Create a new AbstractUnsafe instance which will be used for the life-time of the IChannel
protected abstract NewUnsafe ( ) : IChannelUnsafe
Результат IChannelUnsafe

Read() публичный Метод

public Read ( ) : IChannel
Результат IChannel

ToString() публичный Метод

public ToString ( ) : string
Результат string

WriteAndFlushAsync() публичный Метод

public WriteAndFlushAsync ( object message ) : System.Threading.Tasks.Task
message object
Результат System.Threading.Tasks.Task

WriteAsync() публичный Метод

public WriteAsync ( object message ) : System.Threading.Tasks.Task
message object
Результат System.Threading.Tasks.Task