C# Class MindTouch.Clacks.Client.Net.ConnectionPool

Inheritance: IConnectionPool, IDisposable
Datei anzeigen Open project: MindTouch/MindTouch.Clacks Class Usage Examples

Public Properties

Property Type Description
DefaultCheckInterval System.TimeSpan
DefaultConnectTimeout System.TimeSpan
DefaultIdleTimeout System.TimeSpan
DefaultMaxConnections int

Public Methods

Method Description
ConnectionPool ( Func socketFactory ) : System
Create ( IPEndPoint endpoint ) : ConnectionPool
Create ( string host, int port ) : ConnectionPool
Dispose ( ) : void
GetPool ( IPEndPoint endPoint ) : ConnectionPool
GetPool ( string host, int port ) : ConnectionPool
GetSocket ( ) : ISocket

Private Methods

Method Description
ConnectionPool ( IPEndPoint endpoint ) : System
ConnectionPool ( string host, int port ) : System
ReapSockets ( object state ) : void
Reclaim ( ISocket socket ) : void
ThrowIfDisposed ( ) : void
WrapSocket ( ISocket socket ) : ISocket

Method Details

ConnectionPool() public method

public ConnectionPool ( Func socketFactory ) : System
socketFactory Func
return System

Create() public static method

public static Create ( IPEndPoint endpoint ) : ConnectionPool
endpoint System.Net.IPEndPoint
return ConnectionPool

Create() public static method

public static Create ( string host, int port ) : ConnectionPool
host string
port int
return ConnectionPool

Dispose() public method

public Dispose ( ) : void
return void

GetPool() public static method

public static GetPool ( IPEndPoint endPoint ) : ConnectionPool
endPoint System.Net.IPEndPoint
return ConnectionPool

GetPool() public static method

public static GetPool ( string host, int port ) : ConnectionPool
host string
port int
return ConnectionPool

GetSocket() public method

public GetSocket ( ) : ISocket
return ISocket

Property Details

DefaultCheckInterval public_oe static_oe property

public static TimeSpan,System DefaultCheckInterval
return System.TimeSpan

DefaultConnectTimeout public_oe static_oe property

public static TimeSpan,System DefaultConnectTimeout
return System.TimeSpan

DefaultIdleTimeout public_oe static_oe property

public static TimeSpan,System DefaultIdleTimeout
return System.TimeSpan

DefaultMaxConnections public_oe static_oe property

public static int DefaultMaxConnections
return int