Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,35 @@
property deltaMillis 0L
property newTimestamp ${kafka:timestamp() + deltaMillis}

connect "zilla://streams/asyncapi_kafka0"
option zilla:window 8192
option zilla:transmission "half-duplex"

write zilla:begin.ext ${asyncapi:beginEx()
.typeId(zilla:id("asyncapi"))
.apiId(810158698)
.extension(kafka:beginEx()
.typeId(zilla:id("kafka"))
.merged()
.capabilities("PRODUCE_AND_FETCH")
.topic("mqtt-sessions")
.filter()
.header("type", "will-signal")
.build()
.filter()
.header("type", "expiry-signal")
.build()
.evaluation("LAZY")
.isolation("READ_COMMITTED")
.deltaType("NONE")
.ackMode("LEADER_ONLY")
.build()
.build())
.build()}

connected


connect "zilla://streams/asyncapi_kafka0"
option zilla:window 8192
option zilla:transmission "half-duplex"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,33 @@ accept "zilla://streams/asyncapi_kafka0"

accepted

read zilla:begin.ext ${asyncapi:matchBeginEx()
.typeId(zilla:id("asyncapi"))
.apiId(810158698)
.extension(kafka:beginEx()
.typeId(zilla:id("kafka"))
.merged()
.capabilities("PRODUCE_AND_FETCH")
.topic("mqtt-sessions")
.filter()
.header("type", "will-signal")
.build()
.filter()
.header("type", "expiry-signal")
.build()
.evaluation("LAZY")
.isolation("READ_COMMITTED")
.deltaType("NONE")
.ackMode("LEADER_ONLY")
.build()
.build())
.build()}

connected
read notify WILL_STREAM_STARTED

accepted

read zilla:begin.ext ${asyncapi:matchBeginEx()
.typeId(zilla:id("asyncapi"))
.apiId(810158698)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
# under the License.
#

connect "zilla://streams/asyncapi_proxy0"
connect await WILL_STREAM_STARTED
"zilla://streams/asyncapi_proxy0"
option zilla:window 8192
option zilla:transmission "duplex"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ public void shouldProxyPublishMessageKafka() throws Exception
})
public void shouldProxyPublishMessageMqtt() throws Exception
{
k3po.start();
k3po.notifyBarrier("WILL_STREAM_STARTED");
k3po.finish();
}
}