C# Class Helios.Net.Bootstrap.AbstractBootstrap

Base class for bootstrapping new IConnection objects
Show file Open project: helios-io/helios Class Usage Examples

Public Methods

Method Description
Build ( ) : IConnectionFactory
OnConnect ( ConnectionEstablishedCallback connectionEstablishedCallback ) : AbstractBootstrap
OnDisconnect ( ConnectionTerminatedCallback connectionTerminatedCallback ) : AbstractBootstrap
OnError ( ExceptionCallback exceptionCallback ) : AbstractBootstrap
OnReceive ( ReceivedDataCallback receivedDataCallback ) : AbstractBootstrap
SetAllocator ( IByteBufAllocator allocator ) : AbstractBootstrap
SetConfig ( IConnectionConfig config ) : AbstractBootstrap
SetDecoder ( IMessageDecoder decoder ) : AbstractBootstrap
SetEncoder ( IMessageEncoder encoder ) : AbstractBootstrap
SetOption ( string optionKey, object optionValue ) : AbstractBootstrap
SetTransport ( TransportType type ) : AbstractBootstrap
Validate ( ) : void

Protected Methods

Method Description
AbstractBootstrap ( ) : System
AbstractBootstrap ( AbstractBootstrap other ) : System
BuildInternal ( ) : IConnectionFactory

Method Details

AbstractBootstrap() protected method

protected AbstractBootstrap ( ) : System
return System

AbstractBootstrap() protected method

protected AbstractBootstrap ( AbstractBootstrap other ) : System
other AbstractBootstrap
return System

Build() public method

public Build ( ) : IConnectionFactory
return IConnectionFactory

BuildInternal() protected abstract method

protected abstract BuildInternal ( ) : IConnectionFactory
return IConnectionFactory

OnConnect() public method

public OnConnect ( ConnectionEstablishedCallback connectionEstablishedCallback ) : AbstractBootstrap
connectionEstablishedCallback ConnectionEstablishedCallback
return AbstractBootstrap

OnDisconnect() public method

public OnDisconnect ( ConnectionTerminatedCallback connectionTerminatedCallback ) : AbstractBootstrap
connectionTerminatedCallback ConnectionTerminatedCallback
return AbstractBootstrap

OnError() public method

public OnError ( ExceptionCallback exceptionCallback ) : AbstractBootstrap
exceptionCallback ExceptionCallback
return AbstractBootstrap

OnReceive() public method

public OnReceive ( ReceivedDataCallback receivedDataCallback ) : AbstractBootstrap
receivedDataCallback ReceivedDataCallback
return AbstractBootstrap

SetAllocator() public method

public SetAllocator ( IByteBufAllocator allocator ) : AbstractBootstrap
allocator IByteBufAllocator
return AbstractBootstrap

SetConfig() public method

public SetConfig ( IConnectionConfig config ) : AbstractBootstrap
config IConnectionConfig
return AbstractBootstrap

SetDecoder() public method

public SetDecoder ( IMessageDecoder decoder ) : AbstractBootstrap
decoder IMessageDecoder
return AbstractBootstrap

SetEncoder() public method

public SetEncoder ( IMessageEncoder encoder ) : AbstractBootstrap
encoder IMessageEncoder
return AbstractBootstrap

SetOption() public method

public SetOption ( string optionKey, object optionValue ) : AbstractBootstrap
optionKey string
optionValue object
return AbstractBootstrap

SetTransport() public method

public SetTransport ( TransportType type ) : AbstractBootstrap
type TransportType
return AbstractBootstrap

Validate() public abstract method

public abstract Validate ( ) : void
return void