Evd.ConnectionPool

g Evd.ConnectionPool Evd.ConnectionPool Evd.IoStreamGroup Evd.IoStreamGroup Evd.IoStreamGroup->Evd.ConnectionPool GObject.Object GObject.Object GObject.Object->Evd.IoStreamGroup

Subclasses:

Evd.JsonrpcHttpClient

Methods

Inherited:

Evd.IoStreamGroup (3), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (address, connection_type)

get_connection (cancellable, callback, *user_data)

get_connection_finish (result)

get_tls_autostart ()

get_tls_credentials ()

has_free_connections ()

recycle (conn)

set_tls_autostart (autostart)

set_tls_credentials (credentials)

Virtual Methods

Inherited:

Evd.IoStreamGroup (2), GObject.Object (7)

do_get_connection_type ()

Properties

Inherited:

Evd.IoStreamGroup (2)

Name

Type

Flags

Short Description

address

str

r/w/co

The target socket address to connect to

connection-type

GObject.GType

r/w/co

The GObject.GType of the connections handled by the pool

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

Evd.IoStreamGroup

r

Class Details

class Evd.ConnectionPool(**kwargs)
Bases:

Evd.IoStreamGroup

Abstract:

No

Structure:

Evd.ConnectionPoolClass

classmethod new(address, connection_type)
Parameters:
Return type:

Evd.ConnectionPool

get_connection(cancellable, callback, *user_data)
Parameters:
get_connection_finish(result)
Parameters:

result (Gio.AsyncResult) –

Raises:

GLib.Error

Return type:

Evd.Connection

get_tls_autostart()
Return type:

bool

get_tls_credentials()
Return type:

Evd.TlsCredentials

has_free_connections()
Return type:

bool

recycle(conn)
Parameters:

conn (Evd.Connection) –

Return type:

bool

set_tls_autostart(autostart)
Parameters:

autostart (bool) –

set_tls_credentials(credentials)
Parameters:

credentials (Evd.TlsCredentials) –

do_get_connection_type() virtual
Return type:

GObject.GType

Property Details

Evd.ConnectionPool.props.address
Name:

address

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The target socket address to connect to

Evd.ConnectionPool.props.connection_type
Name:

connection-type

Type:

GObject.GType

Default Value:

<GType EvdConnection>

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The GObject.GType of the connections handled by the pool