Class StreamSubscription

java.lang.Object
com.axelor.ai.chat.stream.StreamSubscription
All Implemented Interfaces:
AutoCloseable

public class StreamSubscription extends Object implements AutoCloseable
Subscriber side of one run: replays chunks from the cache, then tails until the run ends. The topic is only a wake-up signal — every wake (or poll timeout) reads head and emits any chunks between the last emitted seq and head, so missed signals cannot lose data.