Skip to content

Commit e1e62d9

Browse files
authoredJun 12, 2023
Update README.md
1 parent e9f3034 commit e1e62d9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed
 

‎examples/stream_queues/README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ channel.consume(queue, onMessage, {
2727

2828
RabbitMQ supports six different types of offset, however specifying them can be
2929

30-
| Offset Type | Example Value | Notes |
31-
|-----------|------------------------------------------------------------------|-------|
32-
| First | `{ 'x-stream-offset': 'first' }` | Start from the first message in the log |
33-
| Last | `{ 'x-stream-offset': 'last' }` | Start from the last "chunk" of messages (could be multiple messages) |
34-
| Next | `{ 'x-stream-offset': 'next' }` | Start from the next message (the default) |
35-
| Offset | `{ 'x-stream-offset': 5 }` | a numerical value specifying an exact offset to attach to the log at |
36-
| Timestamp | `{ 'x-stream-offset': { '!': 'timestamp', value: 1686519750 } }` | a timestamp value specifying the point in time to attach to the log at. The timestamp must be the number of seconds since 00:00:00 UTC, 1970-01-01. Consumers can receive messages published a bit before the specified timestamp. |
37-
| Interval | `{ 'x-stream-offset': '1h' }` | the time interval relative to current time to attach the log at. Valid units are Y, M, D, h, m and s |
30+
| Offset Type | Example Value | Notes |
31+
|-----------|----------------------------------------------------------|-------|
32+
| First | `{'x-stream-offset':'first'}` | Start from the first message in the log |
33+
| Last | `{'x-stream-offset':'last'}` | Start from the last "chunk" of messages (could be multiple messages) |
34+
| Next | `{'x-stream-offset':'next'}` | Start from the next message (the default) |
35+
| Offset | `{'x-stream-offset':5}` | a numerical value specifying an exact offset to attach to the log at |
36+
| Timestamp | `{'x-stream-offset':{'!':'timestamp',value:1686519750}}` | a timestamp value specifying the point in time to attach to the log at. The timestamp must be the number of seconds since 00:00:00 UTC, 1970-01-01. Consumers can receive messages published a bit before the specified timestamp. |
37+
| Interval | `{'x-stream-offset':'1h'}` | the time interval relative to current time to attach the log at. Valid units are Y, M, D, h, m and s |
3838

3939

4040
See https://www.rabbitmq.com/streams.html#consuming for more details

0 commit comments

Comments
 (0)
Please sign in to comment.