Files

13 lines
911 B
Plaintext

$ function definition = orderSource, poller fixed-delay = 100 ms, demo.max-orders = 5
polled #1: {"orderId":"o-1","customerId":"bob","quantity":2,"unitPrice":9.5}
headers: [contentType, id, scst_partition, timestamp] scst_partition=0
polled #2: {"orderId":"o-2","customerId":"carol","quantity":3,"unitPrice":9.5}
headers: [contentType, id, scst_partition, timestamp] scst_partition=2
polled #3: {"orderId":"o-3","customerId":"dave","quantity":1,"unitPrice":9.5}
headers: [contentType, id, scst_partition, timestamp] scst_partition=1
polled #4: {"orderId":"o-4","customerId":"alice","quantity":2,"unitPrice":9.5}
headers: [contentType, id, scst_partition, timestamp] scst_partition=0
polled #5: {"orderId":"o-5","customerId":"bob","quantity":3,"unitPrice":9.5}
headers: [contentType, id, scst_partition, timestamp] scst_partition=0
messages sent before the supplier started returning null: 5