Mi Galaxy EMQ Book

getQueueMeta()


Get Queue metadata information

Method parameter queueName

queueName : String : required

The name of the Queue that you want to get metadata for

Method return GetQueueMetaResponse

queueMeta : QueueMeta

See below for details regarding Queue metadata information:

  1. queueName : String
    Queue name
  2. queueAttribute : QueueAttribute
    Queue attributes, for specific fields see createQueue()
  3. queueQuota : QueueQuota
    Queue quota, for specific fields see createQueue()
  4. enablePriority : bool
    Whether Queue supports Message priority
  5. topicQueue : bool
    Whether Queue is topicQueue
  6. deleteMessageForce : bool
    Whether the expired Messages in the Queue will be cleared, even if these Messages have not been processed correctly by the Client
  7. defaultTagName : String
    Alias for Queue defaultTag
  8. permissionList : map < string, Permission >
    Queue's permission settings list
  9. redrivePolicy : RedrivePolicy
    Queue's redrive policy
  10. sourceQueues : list < String >
    List of source Queues for Queue (only dead-letter queues are not empty)
  11. createTimestamp : long
    Queue's creation time
  12. lastModifiedTimestamp : long
    Queue's most recent modification
  13. queueTagMap : map < string, QueueTag >
    Queue's Tag information; for QueueTag-included fields are as follows:
    • queueName : String
    • tagName : String
    • tagId : int
      Tag serial number; cannot be 0, and the same Queue tagId cannot be repeated.
    • startTimestamp : long
    • createTimestamp : long
    • attributeName : String
    • attributeValue : MessageAttribute
    • userAttributes : map < string, string >

copyQueue()


Create a new Queue according to the input Queue metadata information

Method parameter CopyQueueRequest

queueMeta : QueueMeta : required

See below for details regarding Queue metadata information:

  1. queueName : String : required
    Queue name
  2. queueAttribute : QueueAttribute : required
    Queue attributes, for specific fields see createQueue()
  3. queueQuota : QueueQuota : optional
    Queue quota, for specific fields see createQueue()
  4. enablePriority : bool : optional
    Whether Queue supports Message priority
  5. topicQueue : bool : optional
    Whether Queue is topicQueue
  6. deleteMessageForce : bool : optional
    Whether the expired Messages in the Queue will be cleared, even if these Messages have not been processed correctly by the Client
  7. defaultTagName : String : optional
    Alias for Queue defaultTag
  8. permissionList : map < string, Permission > : optional
    Queue's permission settings list
  9. redrivePolicy : RedrivePolicy : optional
    Queue's redrive policy
  10. sourceQueues : list < String > : optional
    List of source Queues for Queue (only dead-letter queues are not empty)
  11. createTimestamp : long : optional
    The creation time of the Queue; this parameter is invalid when copying the time the Queue was established.
  12. lastModifiedTimestamp : long : optional
    The time of the Queue's most recent modification; this parameter is invalid when copying the time the Queue was established.
  13. queueTagMap : map < string, QueueTag > : optional
    Queue's Tag information; for QueueTag-included fields are as follows:
    • queueName : String : required
    • tagName : String : required
    • tagId : int : required
      Tag serial number; cannot be 0, and the same Queue tagId cannot be repeated.
    • startTimestamp : long : optional
    • createTimestamp : long : optional
    • attributeName : String : optional
    • attributeValue : MessageAttribute : optional
    • userAttributes : map < string, string > : optional