本文整理匯總了Python中pika.adapters.base_connection.BaseConnection._on_connected方法的典型用法代碼示例。如果您正苦於以下問題:Python BaseConnection._on_connected方法的具體用法?Python BaseConnection._on_connected怎麽用?Python BaseConnection._on_connected使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類pika.adapters.base_connection.BaseConnection
的用法示例。
在下文中一共展示了BaseConnection._on_connected方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: _on_connected
# 需要導入模塊: from pika.adapters.base_connection import BaseConnection [as 別名]
# 或者: from pika.adapters.base_connection.BaseConnection import _on_connected [as 別名]
def _on_connected(self):
# Call superclass and then update the event state to flush the outgoing
# frame out. Commit 50d842526d9f12d32ad9f3c4910ef60b8c301f59 removed a
# self._flush_outbound call that was in _send_frame which previously
# made this step unnecessary.
BaseConnection._on_connected(self)
self._manage_event_state()