ConnectionPool

Overview

ConnectionPool class determines a connection pool which is used to represent outgoing connections and is not used to represent incoming connections because they are not used for pooling.

Location


 

constructor

 

constructor

 

ConnectionPool()

 

init()

 

Sub New()

constructor (Binding, Binding)

 

constructor(bindingV4: Binding; bindingV6: Binding)

 

ConnectionPool(Binding bindingV4, Binding bindingV6)

 

init(_ bindingV4: Binding, _ bindingV6: Binding)

 

Sub New(bindingV4 As Binding, bindingV6 As Binding)

Parameters:

  • bindingV4:
  • bindingV6:

BindingV4

Gets the IPv4 Binding instance.

 

property BindingV4: Binding read;

 

Binding BindingV4 { get; }

 

var BindingV4: Binding { get{} }

 

ReadOnly Property BindingV4() As Binding

BindingV6

Gets the IPv6 Binding instance.

 

property BindingV6: Binding read;

 

Binding BindingV6 { get; }

 

var BindingV6: Binding { get{} }

 

ReadOnly Property BindingV6() As Binding

ConnectionClass

 

property ConnectionClass: Type read write;

 

Type ConnectionClass { get; set; }

 

var ConnectionClass: Type { get{} set{} }

 

Property ConnectionClass() As Type

ConnectionFactory

 

property ConnectionFactory: IConnectionFactory read write;

 

IConnectionFactory ConnectionFactory { get; set; }

 

var ConnectionFactory: IConnectionFactory { get{} set{} }

 

Property ConnectionFactory() As IConnectionFactory

Dispose

 

method Dispose

 

void Dispose()

 

func Dispose()

 

Sub Dispose()

GetConnection

 

method GetConnection(endPoint: EndPoint): Connection

 

Connection GetConnection(EndPoint endPoint)

 

func GetConnection(_ endPoint: EndPoint) -> Connection

 

Function GetConnection(endPoint As EndPoint) As Connection

Parameters:

  • endPoint:

GetNewConnection

 

method GetNewConnection(endPoint: EndPoint): Connection

 

Connection GetNewConnection(EndPoint endPoint)

 

func GetNewConnection(_ endPoint: EndPoint) -> Connection

 

Function GetNewConnection(endPoint As EndPoint) As Connection

Parameters:

  • endPoint:

MaxQueuePerHost

 

property MaxQueuePerHost: Int32 read write;

 

Int32 MaxQueuePerHost { get; set; }

 

var MaxQueuePerHost: Int32 { get{} set{} }

 

Property MaxQueuePerHost() As Int32

ReleaseConnection

 

method ReleaseConnection(connection: Connection)

 

void ReleaseConnection(Connection connection)

 

func ReleaseConnection(_ connection: Connection)

 

Sub ReleaseConnection(connection As Connection)

Parameters:

  • connection:

Timeout

 

property Timeout: Int32 read write;

 

Int32 Timeout { get; set; }

 

var Timeout: Int32 { get{} set{} }

 

Property Timeout() As Int32

 

BindingV4

Gets the IPv4 Binding instance.

 

property BindingV4: Binding read;

 

Binding BindingV4 { get; }

 

var BindingV4: Binding { get{} }

 

ReadOnly Property BindingV4() As Binding

BindingV6

Gets the IPv6 Binding instance.

 

property BindingV6: Binding read;

 

Binding BindingV6 { get; }

 

var BindingV6: Binding { get{} }

 

ReadOnly Property BindingV6() As Binding

ConnectionClass

 

property ConnectionClass: Type read write;

 

Type ConnectionClass { get; set; }

 

var ConnectionClass: Type { get{} set{} }

 

Property ConnectionClass() As Type

ConnectionFactory

 

property ConnectionFactory: IConnectionFactory read write;

 

IConnectionFactory ConnectionFactory { get; set; }

 

var ConnectionFactory: IConnectionFactory { get{} set{} }

 

Property ConnectionFactory() As IConnectionFactory

MaxQueuePerHost

 

property MaxQueuePerHost: Int32 read write;

 

Int32 MaxQueuePerHost { get; set; }

 

var MaxQueuePerHost: Int32 { get{} set{} }

 

Property MaxQueuePerHost() As Int32

Timeout

 

property Timeout: Int32 read write;

 

Int32 Timeout { get; set; }

 

var Timeout: Int32 { get{} set{} }

 

Property Timeout() As Int32

 

constructor

 

constructor

 

ConnectionPool()

 

init()

 

Sub New()

constructor (Binding, Binding)

 

constructor(bindingV4: Binding; bindingV6: Binding)

 

ConnectionPool(Binding bindingV4, Binding bindingV6)

 

init(_ bindingV4: Binding, _ bindingV6: Binding)

 

Sub New(bindingV4 As Binding, bindingV6 As Binding)

Parameters:

  • bindingV4:
  • bindingV6:

Dispose

 

method Dispose

 

void Dispose()

 

func Dispose()

 

Sub Dispose()

GetConnection

 

method GetConnection(endPoint: EndPoint): Connection

 

Connection GetConnection(EndPoint endPoint)

 

func GetConnection(_ endPoint: EndPoint) -> Connection

 

Function GetConnection(endPoint As EndPoint) As Connection

Parameters:

  • endPoint:

GetNewConnection

 

method GetNewConnection(endPoint: EndPoint): Connection

 

Connection GetNewConnection(EndPoint endPoint)

 

func GetNewConnection(_ endPoint: EndPoint) -> Connection

 

Function GetNewConnection(endPoint As EndPoint) As Connection

Parameters:

  • endPoint:

ReleaseConnection

 

method ReleaseConnection(connection: Connection)

 

void ReleaseConnection(Connection connection)

 

func ReleaseConnection(_ connection: Connection)

 

Sub ReleaseConnection(connection As Connection)

Parameters:

  • connection: