OpenQuizz
Une application de gestion des contenus pédagogiques
ConnectionClosedEvent Class Reference
Inheritance diagram for ConnectionClosedEvent:
Collaboration diagram for ConnectionClosedEvent:

Public Member Functions

def __init__ (self, address, connection_id, reason)
 
def reason (self)
 
def __repr__ (self)
 
- Public Member Functions inherited from _ConnectionEvent
def __init__ (self, address, connection_id)
 
def address (self)
 
def connection_id (self)
 

Detailed Description

Published when a Connection is closed.

:Parameters:
 - `address`: The address (host, port) pair of the server this
   Connection is attempting to connect to.
 - `connection_id`: The integer ID of the Connection in this Pool.
 - `reason`: A reason explaining why this connection was closed.

.. versionadded:: 3.9

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  address,
  connection_id,
  reason 
)

Member Function Documentation

◆ __repr__()

def __repr__ (   self)

Reimplemented from _ConnectionEvent.

◆ reason()

def reason (   self)
A reason explaining why this connection was closed.

The reason must be one of the strings from the
:class:`ConnectionClosedReason` enum.

The documentation for this class was generated from the following file: