brokerlso/qmfv2.py
def create_queue(self, name, strict=True, auto_delete=False, auto_delete_timeout=0):
        """Create message content and properties to create queue with QMFv2

        :param name: Name of queue to create
        :type name: str
        :param strict: Whether command should fail when unrecognized properties are provided
            Not used by QMFv2
            Default: True
        :type strict: bool
        :param auto_delete: Whether queue should be auto deleted
            Default: False
        :type auto_delete: bool
        :param auto_delete_timeout: Timeout in seconds for auto deleting queue
            Default: 10
        :type auto_delete_timeout: int

        :returns: Tuple containing content and method properties
        """
        content = {"_object_id": {"_object_name": self.object_name},
                   "_method_name": "create",
                   "_arguments": {"type": "queue",
                                  "name": name,
                                  "strict": strict,
                                  "properties": {"auto-delete": auto_delete,
                                                 "qpid.auto_delete_timeout": auto_delete_timeout}}}
        logger.debug("Message content -> {0}".format(content))

        return content, self.method_properties
def create_queue(self, name, strict=True, auto_delete=False, auto_delete_timeout=0):
        """Create message content and properties to create queue with QMFv2

        :param name: Name of queue to create
        :type name: str
        :param strict: Whether command should fail when unrecognized properties are provided
            Not used by QMFv2
            Default: True
        :type strict: bool
        :param auto_delete: Whether queue should be auto deleted
            Default: False
        :type auto_delete: bool
        :param auto_delete_timeout: Timeout in seconds for auto deleting queue
            Default: 10
        :type auto_delete_timeout: int

        :returns: Tuple containing content and method properties
        """
        content = {"_object_id": {"_object_name": self.object_name},
                   "_method_name": "create",
                   "_arguments": {"type": "queue",
                                  "name": name,
                                  "strict": strict,
                                  "properties": {"auto-delete": auto_delete,
                                                 "qpid.auto_delete_timeout": auto_delete_timeout}}}
        logger.debug("Message content -> {0}".format(content))

        return content, self.method_properties
Create message content and properties to create queue with QMFv2

        :param name: Name of queue to create
        :type name: str
        :param strict: Whether command should fail when unrecognized properties are provided
            Not used by QMFv2
            Default: True
        :type strict: bool
        :param auto_delete: Whether queue should be auto deleted
            Default: False
        :type auto_delete: bool
        :param auto_delete_timeout: Timeout in seconds for auto deleting queue
            Default: 10
        :type auto_delete_timeout: int

        :returns: Tuple containing content and method properties