RedisSMQ / Docs / API Reference
- EConsumeMessageDeadLetterCause
- EConsumeMessageUnacknowledgedCause
- EExchangeType
- EMessagePriority
- EMessageProperty
- EMessagePropertyStatus
- EQueueDeliveryModel
- EQueueProperty
- EQueueType
- Configuration
- Consumer
- ConsumerGroups
- EventBusRedisInstance
- ExchangeDirect
- ExchangeFanOut
- ExchangeTopic
- Message
- Namespace
- Producer
- ProducibleMessage
- Queue
- QueueAcknowledgedMessages
- QueueDeadLetteredMessages
- QueueMessages
- QueuePendingMessages
- QueueRateLimit
- QueueScheduledMessages
- ConfigurationError
- ConfigurationMessageQueueSizeError
- ConfigurationMessageStoreExpireError
- ConfigurationNamespaceError
- ConsumerConsumeMessageHandlerAlreadyExistsError
- ConsumerConsumerGroupIdNotSupportedError
- ConsumerConsumerGroupIdRequiredError
- ConsumerError
- ConsumerGroupsConsumerGroupNotEmptyError
- ConsumerGroupsConsumerGroupsNotSupportedError
- ConsumerGroupsError
- ConsumerGroupsInvalidGroupIdError
- ConsumerGroupsQueueNotFoundError
- EventBusInstanceLockError
- ExchangeError
- ExchangeFanOutError
- ExchangeFanOutExchangeHasBoundQueuesError
- ExchangeFanOutQueueTypeError
- ExchangeInvalidFanOutParamsError
- ExchangeInvalidQueueParamsError
- ExchangeInvalidTopicParamsError
- ExchangeQueueIsNotBoundToExchangeError
- MessageDestinationQueueAlreadySetError
- MessageDestinationQueueRequiredError
- MessageError
- MessageInvalidParametersError
- MessageMessageExchangeRequiredError
- MessageMessageInProcessError
- MessageMessageNotDeletedError
- MessageMessageNotFoundError
- MessageMessageNotRequeuableError
- MessageMessagePropertyError
- NamespaceError
- NamespaceInvalidNamespaceError
- NamespaceNotFoundError
- ProducerError
- ProducerExchangeNoMatchedQueueError
- ProducerInstanceNotRunningError
- ProducerMessageExchangeRequiredError
- ProducerMessagePriorityRequiredError
- ProducerPriorityQueuingNotEnabledError
- ProducerQueueMissingConsumerGroupsError
- ProducerQueueNotFoundError
- ProducerScheduleInvalidParametersError
- ProducerUnknownQueueTypeError
- QueueError
- QueueInvalidQueueParameterError
- QueueMessagesConsumerGroupIdNotSupportedError
- QueueMessagesConsumerGroupIdRequiredError
- QueueMessagesError
- QueueQueueExistsError
- QueueQueueHasRunningConsumersError
- QueueQueueNotEmptyError
- QueueQueueNotFoundError
- QueueRateLimitError
- QueueRateLimitInvalidIntervalError
- QueueRateLimitInvalidLimitError
- QueueRateLimitQueueNotFoundError
- IConsumerConfig
- IConsumerHeartbeat
- IConsumerHeartbeatPayload
- IConsumerMessageHandlerArgs
- IEventBusConfig
- IExchange
- IMessageParams
- IMessageStateTransferable
- IMessageTransferable
- IMessagesConfig
- IMessagesConfigStorage
- IMessagesConfigStorageOptions
- IMessagesConfigStorageOptionsRequired
- IMessagesConfigStorageRequired
- IQueueConsumerGroupParams
- IQueueGroupConsumersPendingCount
- IQueueMessages
- IQueueMessagesCount
- IQueueMessagesPage
- IQueueMessagesRequeuable
- IQueueParams
- IQueueParsedParams
- IQueueProperties
- IQueueRateLimit
- IRedisSMQConfig
- IRedisSMQConfigRequired
- ITopicParams
- IQueueMessagesPageParams
- TConsumerConsumeMessageEvent
- TConsumerDequeueMessageEvent
- TConsumerEvent
- TConsumerHeartbeatEvent
- TConsumerMessageHandler
- TConsumerMessageHandlerEvent
- TConsumerMessageHandlerFn
- TConsumerMessageHandlerRunnerEvent
- TConsumerRedisKeys
- TEventBusEvent
- TExchangeDirectTransferable
- TExchangeFanOutTransferable
- TExchangeTopicTransferable
- TExchangeTransferable
- TMessageConsumeOptions
- TProducerEvent
- TQueueConsumer
- TQueueEvent
- TQueueExtendedParams
- TQueueMessagesPaginationParams
- TQueueMessagesParams
- TRedisSMQEvent
Ƭ IQueueMessagesPageParams: Object
Name | Type |
---|---|
currentPage |
number |
offsetEnd |
number |
offsetStart |
number |
totalPages |
number |
Ƭ TConsumerConsumeMessageEvent: Object
Name | Type |
---|---|
consumer.consumeMessage.error |
(err : Error , consumerId : string , queue : IQueueParsedParams ) => void |
consumer.consumeMessage.messageAcknowledged |
(messageId : string , queue : IQueueParsedParams , messageHandlerId : string , consumerId : string ) => void |
consumer.consumeMessage.messageDeadLettered |
(messageId : string , queue : IQueueParsedParams , messageHandlerId : string , consumerId : string , cause : EConsumeMessageDeadLetterCause ) => void |
consumer.consumeMessage.messageDelayed |
(messageId : string , queue : IQueueParsedParams , messageHandlerId : string , consumerId : string ) => void |
consumer.consumeMessage.messageRequeued |
(messageId : string , queue : IQueueParsedParams , messageHandlerId : string , consumerId : string ) => void |
consumer.consumeMessage.messageUnacknowledged |
(messageId : string , queue : IQueueParsedParams , messageHandlerId : string , consumerId : string , cause : EConsumeMessageUnacknowledgedCause ) => void |
Ƭ TConsumerDequeueMessageEvent: Object
Name | Type |
---|---|
consumer.dequeueMessage.error |
(err : Error , consumerId : string , queue : IQueueParsedParams ) => void |
consumer.dequeueMessage.messageReceived |
(messageId : string , queue : IQueueParsedParams , consumerId : string ) => void |
consumer.dequeueMessage.nextMessage |
() => void |
Ƭ TConsumerEvent: Object
Name | Type |
---|---|
consumer.down |
(consumerId : string ) => void |
consumer.error |
(err : Error , consumerId : string ) => void |
consumer.goingDown |
(consumerId : string ) => void |
consumer.goingUp |
(consumerId : string ) => void |
consumer.up |
(consumerId : string ) => void |
Ƭ TConsumerHeartbeatEvent: Object
Name | Type |
---|---|
consumerHeartbeat.error |
(err : Error ) => void |
consumerHeartbeat.heartbeat |
(consumerId : string , timestamp : number , heartbeatPayload : IConsumerHeartbeat ) => void |
Ƭ TConsumerMessageHandler: string
| TConsumerMessageHandlerFn
Ƭ TConsumerMessageHandlerEvent: Object
Name | Type |
---|---|
consumer.messageHandler.error |
(err : Error , consumerId : string , queue : IQueueParsedParams ) => void |
Ƭ TConsumerMessageHandlerFn: (msg
: IMessageTransferable
, cb
: ICallback
<void
>) => void
▸ (msg
, cb
): void
Name | Type |
---|---|
msg |
IMessageTransferable |
cb |
ICallback <void > |
void
Ƭ TConsumerMessageHandlerRunnerEvent: Object
Name | Type |
---|---|
consumer.messageHandlerRunner.error |
(err : Error , consumerId : string ) => void |
Ƭ TConsumerRedisKeys: ReturnType
<typeof redisKeys
["getConsumerKeys"
]>
Ƭ TEventBusEvent: Object
Name | Type |
---|---|
error |
(err : Error ) => void |
Ƭ TExchangeDirectTransferable: Object
Name | Type |
---|---|
exchangeTag |
string |
params |
IQueueParams |
type |
DIRECT |
Ƭ TExchangeFanOutTransferable: Object
Name | Type |
---|---|
exchangeTag |
string |
params |
string |
type |
FANOUT |
Ƭ TExchangeTopicTransferable: Object
Name | Type |
---|---|
exchangeTag |
string |
params |
ITopicParams |
type |
TOPIC |
Ƭ TExchangeTransferable: TExchangeDirectTransferable
| TExchangeTopicTransferable
| TExchangeFanOutTransferable
Ƭ TMessageConsumeOptions: Object
Name | Type |
---|---|
consumeTimeout |
number |
retryDelay |
number |
retryThreshold |
number |
ttl |
number |
Ƭ TProducerEvent: Object
Name | Type |
---|---|
producer.down |
(producerId : string ) => void |
producer.error |
(err : Error , producerId : string ) => void |
producer.goingDown |
(producerId : string ) => void |
producer.goingUp |
(producerId : string ) => void |
producer.messagePublished |
(messageId : string , queue : IQueueParsedParams , producerId : string ) => void |
producer.up |
(producerId : string ) => void |
Ƭ TQueueConsumer: Object
Name | Type |
---|---|
createdAt |
number |
hostname |
string |
ipAddress |
string [] |
pid |
number |
Ƭ TQueueEvent: Object
Name | Type |
---|---|
queue.consumerGroupCreated |
(queue : IQueueParams , groupId : string ) => void |
queue.consumerGroupDeleted |
(queue : IQueueParams , groupId : string ) => void |
queue.queueCreated |
(queue : IQueueParams , properties : IQueueProperties ) => void |
queue.queueDeleted |
(queue : IQueueParams ) => void |
Ƭ TQueueExtendedParams: string
| IQueueParams
| IQueueConsumerGroupParams
Ƭ TQueueMessagesPaginationParams: Object
Name | Type |
---|---|
consumerGroupId? |
string | null |
page |
number |
pageSize |
number |
queue |
string | IQueueParams |
Ƭ TQueueMessagesParams: Object
Name | Type |
---|---|
consumerGroupId? |
string | null |
queue |
string | IQueueParams |
Ƭ TRedisSMQEvent: TEventBusEvent
& TConsumerEvent
& TConsumerHeartbeatEvent
& TConsumerMessageHandlerRunnerEvent
& TConsumerMessageHandlerEvent
& TConsumerConsumeMessageEvent
& TConsumerDequeueMessageEvent
& TProducerEvent
& TQueueEvent