C# Class Helios.Reactor.Bootstrap.ServerBootstrap

Inheritance: Helios.Net.Bootstrap.AbstractBootstrap
Exibir arquivo Open project: helios-io/helios Class Usage Examples

Public Methods

Method Description
BufferSize ( int bufferSize ) : ServerBootstrap
Build ( ) : IServerFactory
Executor ( IExecutor executor ) : ServerBootstrap
OnConnect ( ConnectionEstablishedCallback connectionEstablishedCallback ) : ServerBootstrap
OnDisconnect ( ConnectionTerminatedCallback connectionTerminatedCallback ) : ServerBootstrap
OnError ( ExceptionCallback exceptionCallback ) : ServerBootstrap
OnReceive ( ReceivedDataCallback receivedDataCallback ) : ServerBootstrap
ServerBootstrap ( ) : System
ServerBootstrap ( ServerBootstrap other ) : System
SetAllocator ( IByteBufAllocator allocator ) : ServerBootstrap
SetConfig ( IConnectionConfig config ) : ServerBootstrap
SetDecoder ( IMessageDecoder decoder ) : ServerBootstrap
SetEncoder ( IMessageEncoder encoder ) : ServerBootstrap
SetOption ( string optionKey, object optionValue ) : ServerBootstrap
SetTransport ( TransportType type ) : ServerBootstrap
Validate ( ) : void
WorkerThreads ( int workerThreadCount ) : ServerBootstrap
WorkersAreProxies ( bool useProxies ) : ServerBootstrap
WorkersShareFiber ( bool shareFiber ) : ServerBootstrap

Protected Methods

Method Description
BuildInternal ( ) : IConnectionFactory

Method Details

BufferSize() public method

public BufferSize ( int bufferSize ) : ServerBootstrap
bufferSize int
return ServerBootstrap

Build() public method

public Build ( ) : IServerFactory
return IServerFactory

BuildInternal() protected method

protected BuildInternal ( ) : IConnectionFactory
return IConnectionFactory

Executor() public method

public Executor ( IExecutor executor ) : ServerBootstrap
executor IExecutor
return ServerBootstrap

OnConnect() public method

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

OnDisconnect() public method

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

OnError() public method

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

OnReceive() public method

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

ServerBootstrap() public method

public ServerBootstrap ( ) : System
return System

ServerBootstrap() public method

public ServerBootstrap ( ServerBootstrap other ) : System
other ServerBootstrap
return System

SetAllocator() public method

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

SetConfig() public method

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

SetDecoder() public method

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

SetEncoder() public method

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

SetOption() public method

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

SetTransport() public method

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

Validate() public method

public Validate ( ) : void
return void

WorkerThreads() public method

public WorkerThreads ( int workerThreadCount ) : ServerBootstrap
workerThreadCount int
return ServerBootstrap

WorkersAreProxies() public method

public WorkersAreProxies ( bool useProxies ) : ServerBootstrap
useProxies bool
return ServerBootstrap

WorkersShareFiber() public method

public WorkersShareFiber ( bool shareFiber ) : ServerBootstrap
shareFiber bool
return ServerBootstrap