def renew_lock(self):
if self._queue_name:<EOL><INDENT>self.service_bus_service.renew_lock_queue_message(<EOL>self._queue_name,<EOL>self.broker_properties['<STR_LIT>'],<EOL>self.broker_properties['<STR_LIT>'])<EOL><DEDENT>elif self._topic_name and self._subscription_name:<EOL><INDENT>self.service_bus_service.renew_lock_subscription_message(<EOL>self._topic_name,<EOL>self._subscription_name,<EOL>self.broker_properties['<STR_LIT>'],<EOL>self.broker_properties['<STR_LIT>'])<EOL><DEDENT>else:<EOL><INDENT>raise AzureServiceBusPeekLockError(_ERROR_MESSAGE_NOT_PEEK_LOCKED_ON_RENEW_LOCK)<EOL><DEDENT>
Renew lock on itself if find queue name or topic name and subscription
        name.