C# Class Helios.Channels.AbstractChannel

Inheritance: IChannel
Afficher le fichier Open project: helios-io/helios Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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

Method Details

AbstractChannel() protected méthode

protected AbstractChannel ( IChannel parent ) : System
parent IChannel
Résultat System

AbstractChannel() protected méthode

protected AbstractChannel ( IChannelId id, IChannel parent ) : System
id IChannelId
parent IChannel
Résultat System

BindAsync() public méthode

public BindAsync ( EndPoint localAddress ) : System.Threading.Tasks.Task
localAddress System.Net.EndPoint
Résultat System.Threading.Tasks.Task

CacheLocalAddress() protected méthode

protected CacheLocalAddress ( ) : EndPoint
Résultat System.Net.EndPoint

CacheRemoteAddress() protected méthode

protected CacheRemoteAddress ( ) : EndPoint
Résultat System.Net.EndPoint

CloseAsync() public méthode

public CloseAsync ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

ConnectAsync() public méthode

public ConnectAsync ( EndPoint remoteAddress ) : System.Threading.Tasks.Task
remoteAddress System.Net.EndPoint
Résultat System.Threading.Tasks.Task

ConnectAsync() public méthode

public ConnectAsync ( EndPoint remoteAddress, EndPoint localAddress ) : System.Threading.Tasks.Task
remoteAddress System.Net.EndPoint
localAddress System.Net.EndPoint
Résultat System.Threading.Tasks.Task

DeregisterAsync() public méthode

public DeregisterAsync ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

DisconnectAsync() public méthode

public DisconnectAsync ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

DoBeginRead() protected abstract méthode

ScheduleAsync a read operation.
protected abstract DoBeginRead ( ) : void
Résultat void

DoBind() protected abstract méthode

Bind the {@link Channel} to the {@link EndPoint}
protected abstract DoBind ( EndPoint localAddress ) : void
localAddress System.Net.EndPoint
Résultat void

DoClose() protected abstract méthode

Close the {@link Channel}
protected abstract DoClose ( ) : void
Résultat void

DoDeregister() protected méthode

Deregister the {@link Channel} from its {@link EventLoop}. Sub-classes may override this method
protected DoDeregister ( ) : void
Résultat void

DoDisconnect() protected abstract méthode

Disconnect this {@link Channel} from its remote peer
protected abstract DoDisconnect ( ) : void
Résultat void

DoRegister() protected méthode

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
Résultat void

DoWrite() protected abstract méthode

Flush the content of the given buffer to the remote peer.
protected abstract DoWrite ( ChannelOutboundBuffer input ) : void
input ChannelOutboundBuffer
Résultat void

FilterOutboundMessage() protected méthode

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
Résultat object

Flush() public méthode

public Flush ( ) : IChannel
Résultat IChannel

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

InvalidateLocalAddress() protected méthode

protected InvalidateLocalAddress ( ) : void
Résultat void

InvalidateRemoteAddress() protected méthode

protected InvalidateRemoteAddress ( ) : void
Résultat void

IsCompatible() protected abstract méthode

Return {@code true} if the given {@link EventLoop} is compatible with this instance.
protected abstract IsCompatible ( IEventLoop eventLoop ) : bool
eventLoop IEventLoop
Résultat bool

NewUnsafe() protected abstract méthode

Create a new AbstractUnsafe instance which will be used for the life-time of the IChannel
protected abstract NewUnsafe ( ) : IChannelUnsafe
Résultat IChannelUnsafe

Read() public méthode

public Read ( ) : IChannel
Résultat IChannel

ToString() public méthode

public ToString ( ) : string
Résultat string

WriteAndFlushAsync() public méthode

public WriteAndFlushAsync ( object message ) : System.Threading.Tasks.Task
message object
Résultat System.Threading.Tasks.Task

WriteAsync() public méthode

public WriteAsync ( object message ) : System.Threading.Tasks.Task
message object
Résultat System.Threading.Tasks.Task