async def _client_ready_async(self):
        """Determine whether the client is ready to start receiving messages.
        To be ready, the connection must be open and authentication complete,
        The Session, Link and MessageReceiver must be open and in non-errored
        states.

        :rtype: bool
        :raises: ~uamqp.errors.MessageHandlerError if the MessageReceiver
         goes into an error state.
        """
        # pylint: disable=protected-access
        if not self.message_handler:
            self.message_handler = self.receiver_type(
                self._session, self._remote_address, self._name,
                on_message_received=self._message_received,
                name='receiver-link-{}'.format(uuid.uuid4()),
                debug=self._debug_trace,
                receive_settle_mode=self._receive_settle_mode,
                prefetch=self._prefetch,
                max_message_size=self._max_message_size,
                properties=self._link_properties,
                error_policy=self._error_policy,
                encoding=self._encoding,
                loop=self.loop)
            await asyncio.shield(self.message_handler.open_async())
            return False
        if self.message_handler.get_state() == constants.MessageReceiverState.Error:
            raise errors.MessageHandlerError(
                "Message Receiver Client is in an error state. "
                "Please confirm credentials and access permissions."
                "\nSee debug trace for more details.")
        if self.message_handler.get_state() != constants.MessageReceiverState.Open:
            self._last_activity_timestamp = self._counter.get_current_ms()
            return False
        return True
async def _client_ready_async ( self ) : if not self . message_handler : self . message_handler = self . receiver_type ( self . _session , self . _remote_address , self . _name , on_message_received = self . _message_received , name = 'receiver-link-{}' . format ( uuid . uuid4 ( ) ) , debug = self . _debug_trace , receive_settle_mode = self . _receive_settle_mode , prefetch = self . _prefetch , max_message_size = self . _max_message_size , properties = self . _link_properties , error_policy = self . _error_policy , encoding = self . _encoding , loop = self . loop ) await asyncio . shield ( self . message_handler . open_async ( ) ) return False if self . message_handler . get_state ( ) == constants . MessageReceiverState . Error : raise errors . MessageHandlerError ( "Message Receiver Client is in an error state. " "Please confirm credentials and access permissions." "\nSee debug trace for more details." ) if self . message_handler . get_state ( ) != constants . MessageReceiverState . Open : self . _last_activity_timestamp = self . _counter . get_current_ms ( ) return False return True
Determine whether the client is ready to start receiving messages.
        To be ready, the connection must be open and authentication complete,
        The Session, Link and MessageReceiver must be open and in non-errored
        states.

        :rtype: bool
        :raises: ~uamqp.errors.MessageHandlerError if the MessageReceiver
         goes into an error state.