Receive
Receive a messages from a queue channel command

Synopsis

Receive command allows to receive one or many messages from a queue channel
1
kubemqctl queues receive [flags]
Copied!

Examples

1
# Receive 1 messages from a queue channel q1 and wait for 2 seconds (default)
2
kubemqctl queue receive q1
3
4
# Receive 3 messages from a queue channel and wait for 5 seconds
5
kubemqctl queue receive q1 -m 3 -t 5
6
7
# Watching 'queues' channel messages
8
kubemqctl queue receive q1 -w
Copied!

Options

1
-h, --help help for receive
2
-m, --messages int set how many messages we want to get from a queue (default 1)
3
-t, --wait-timeout int set how many seconds to wait for 'queues' messages (default 2)
4
-w, --watch set watch on 'queues' channel
Copied!

Options inherited from parent commands

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