C# Class Droog.Beanstalk.Client.Net.ConnectionPool

Inheritance: IConnectionPool, IDisposable
ファイルを表示 Open project: sdether/libBeanstalk.NET

Public Properties

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

Public Methods

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

Private Methods

Method Description
ConnectionPool ( IPAddress address, int port ) : System
ConnectionPool ( string host, int port ) : System
Dispose ( bool suppressFinalizer ) : void
ReapSockets ( object state ) : void
Reclaim ( ISocket socket ) : 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 ( IPAddress address, int port ) : ConnectionPool
address System.Net.IPAddress
port int
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 ( IPAddress address, int port ) : ConnectionPool
address System.Net.IPAddress
port int
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

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