#NEWLINE# def __init__( self , connection , interval , idle_count = MAX_IDLE_COUNT ) : #NEWLINE# #INDENT# 'Create a heartbeat on connection sending a heartbeat frame every\n        interval seconds.\n\n        :param pika.connection.Connection: Connection object\n        :param int interval: Heartbeat check interval\n        :param int idle_count: Number of heartbeat intervals missed until the\n                               connection is considered idle and disconnects\n\n        ' #NEWLINE# self . _connection = connection #NEWLINE# self . _interval = interval #NEWLINE# self . _max_idle_count = idle_count #NEWLINE# self . _bytes_received = 0 #NEWLINE# self . _bytes_sent = 0 #NEWLINE# self . _heartbeat_frames_received = 0 #NEWLINE# self . _heartbeat_frames_sent = 0 #NEWLINE# self . _idle_byte_intervals = 0 #NEWLINE# self . _timer = None #NEWLINE# self . _setup_timer ( )