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

Public Member Functions

def __init__ (self, duration, reply, connection_id, awaited=False)
 
def duration (self)
 
def reply (self)
 
def awaited (self)
 
def __repr__ (self)
 
- Public Member Functions inherited from _ServerHeartbeatEvent
def __init__ (self, connection_id)
 
def connection_id (self)
 

Detailed Description

Fired when the server heartbeat fails, either with an "ok: 0"
or a socket exception.

.. versionadded:: 3.3

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  duration,
  reply,
  connection_id,
  awaited = False 
)

Member Function Documentation

◆ __repr__()

def __repr__ (   self)

Reimplemented from _ServerHeartbeatEvent.

◆ awaited()

def awaited (   self)
Whether the heartbeat was awaited.

If true, then :meth:`duration` reflects the sum of the round trip time
to the server and the time that the server waited before sending a
response.

◆ duration()

def duration (   self)
The duration of this heartbeat in microseconds.

◆ reply()

def reply (   self)
A subclass of :exc:`Exception`.

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