EvdConnectionPool

EvdConnectionPool

Synopsis

struct              EvdConnectionPool;
struct              EvdConnectionPoolClass;
void                evd_connection_pool_get_connection  (EvdConnectionPool *self,
                                                         GCancellable *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);
EvdConnection *     evd_connection_pool_get_connection_finish
                                                        (EvdConnectionPool *self,
                                                         GAsyncResult *result,
                                                         GError **error);
gboolean            evd_connection_pool_has_free_connections
                                                        (EvdConnectionPool *self);
EvdConnectionPool * evd_connection_pool_new             (const gchar *address,
                                                         GType connection_type);
gboolean            evd_connection_pool_recycle         (EvdConnectionPool *self,
                                                         EvdConnection *conn);

Object Hierarchy

  GObject
   +----EvdIoStreamGroup
         +----EvdConnectionPool
               +----EvdJsonrpcHttpClient

Properties

  "address"                  gchar*                : Read / Write
  "connection-type"          GType*                : Read / Write / Construct Only

Description

Details

struct EvdConnectionPool

struct EvdConnectionPool;


struct EvdConnectionPoolClass

struct EvdConnectionPoolClass {
  EvdIoStreamGroupClass parent_class;

  GType (* get_connection_type) (EvdConnectionPool *self);

  /* padding for future expansion */
  void (* _padding_1_) (void);
  void (* _padding_2_) (void);
  void (* _padding_3_) (void);
  void (* _padding_4_) (void);
  void (* _padding_5_) (void);
  void (* _padding_6_) (void);
  void (* _padding_7_) (void);
};


evd_connection_pool_get_connection ()

void                evd_connection_pool_get_connection  (EvdConnectionPool *self,
                                                         GCancellable *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);


evd_connection_pool_get_connection_finish ()

EvdConnection *     evd_connection_pool_get_connection_finish
                                                        (EvdConnectionPool *self,
                                                         GAsyncResult *result,
                                                         GError **error);

Returns :

. [transfer full]

evd_connection_pool_has_free_connections ()

gboolean            evd_connection_pool_has_free_connections
                                                        (EvdConnectionPool *self);


evd_connection_pool_new ()

EvdConnectionPool * evd_connection_pool_new             (const gchar *address,
                                                         GType connection_type);


evd_connection_pool_recycle ()

gboolean            evd_connection_pool_recycle         (EvdConnectionPool *self,
                                                         EvdConnection *conn);

Property Details

The "address" property

  "address"                  gchar*                : Read / Write

The target socket address to connect to.

Default value: NULL


The "connection-type" property

  "connection-type"          GType*                : Read / Write / Construct Only

The GType of the connections handled by the pool.

Allowed values: EvdConnection