CreateQueue Method

Creates an SQS queue.

Syntax

ANSI (Cross Platform)
char* CreateQueue(const char* lpszQueueName);

Unicode (Windows)
LPWSTR CreateQueue(LPCWSTR lpszQueueName);
- (NSString*)createQueue:(NSString*)queueName;
#define MID_AMAZONSQS_CREATEQUEUE 6

IPWORKSMQ_EXTERNAL int IPWORKSMQ_CALL IPWorksMQ_AmazonSQS_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);

Remarks

A queue with the specified name is created.

CreateQueue returns a queue id assigned to the queue. This can then be used to CreateMessage or DeleteQueue.

If the QueueName ends with .fifo, the queue will be created as a FIFO queue. Alternatively, if the UseFIFOQueues configuration setting is enabled, the class will always attempt to create FIFO queues, appending .fifo to the given QueueName if necessary (all FIFO queues' names must have that suffix).

Error Handling (C++)

This method returns a String value; after it returns, call the GetLastErrorCode() method to obtain its result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks MQ 2020 C++ Edition - Version 20.0 [Build 8155]