Send
Send a message to a queue channel command

Synopsis

Send command allows to send one or many message to a queue channel
1
kubemqctl queues send [flags]
Copied!

Examples

1
# Send message to a queue channel channel
2
kubemqctl queue send q1 some-message
3
4
# Send message to a queue channel with metadata
5
kubemqctl queue send q1 some-message --metadata some-metadata
6
7
# Send 5 messages to a queues channel with metadata
8
kubemqctl queue send q1 some-message --metadata some-metadata -m 5
9
10
# Send message to a queue channel with a message expiration of 5 seconds
11
kubemqctl queue send q1 some-message -e 5
12
13
# Send message to a queue channel with a message delay of 5 seconds
14
kubemqctl queue send q1 some-message -d 5
15
16
# Send message to a queue channel with a message policy of max receive 5 times and dead-letter queue 'dead-letter'
17
kubemqctl queue send q1 some-message -r 5 -q dead-letter
Copied!

Options

1
-q, --dead-letter-queue string set dead-letter queue name
2
-d, --delay int set queue message sending delay seconds
3
-e, --expiration int set queue message expiration seconds
4
-h, --help help for send
5
-r, --max-receive int set dead-letter max receive count
6
-m, --messages int set dead-letter max receive count (default 1)
7
--metadata string set queue message metadata field
Copied!

Options inherited from parent commands

1
--config string set kubemqctl configuration file (default "./.kubemqctl.yaml")
Copied!
Last modified 1yr ago