本文整理汇总了TypeScript中amqp10.Client.createReceiver方法的典型用法代码示例。如果您正苦于以下问题:TypeScript Client.createReceiver方法的具体用法?TypeScript Client.createReceiver怎么用?TypeScript Client.createReceiver使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类amqp10.Client
的用法示例。
在下文中一共展示了Client.createReceiver方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: createPartitionReceiver
function createPartitionReceiver(curIdx: number, curRcvAddr: string, filterOption: amqp.Policy.Options.ReceiverLink) {
return client.createReceiver(curRcvAddr, filterOption)
.then(receiver => {
receiver.on('message', messageHandler.bind(null, curIdx));
receiver.on('errorReceived', errorHandler.bind(null, curIdx));
});
};
示例2:
.then(function() {
console.log("THEN");
return Promise.all([
client.createReceiver('fhir_datasync_queue_dev', { auto_delete: true })
//client.createSender('fhir_datasync_queue_dev')
]);
})
示例3:
.then(() => Promise.all([
client.createSender(topicName),
client.createReceiver(topicName + '/Subscriptions/' + subscriptionName)
]))
示例4:
.then(() => Promise.all([
client.createReceiver('amq.topic'),
client.createSender('amq.topic')
]))
示例5:
.then(() => Promise.all([
client.createSender(queueName),
client.createReceiver(queueName)
]))
示例6:
.then(() => {
console.log('CONNECTION OK');
return Promise.all([this.client.createReceiver('jms.queue.toto'), this.client.createSender('jms.queue.toto')])
})
示例7:
.then(() => client.createReceiver('amq.topic'))
示例8:
.then(() => {
return Promise.all([
client.createReceiver(managementEndpoint, rxOptions),
client.createSender(managementEndpoint)
]);
})