Class JobEventStream

java.lang.Object
com.alibaba.dashscope.transport.sse.JobEventStream
All Implemented Interfaces:
AutoCloseable, Iterable<JobEventStream.Frame>

public final class JobEventStream extends Object implements AutoCloseable, Iterable<JobEventStream.Frame>
Blocking, pull-model parser for the job-event SSE framing (fine-tunes/deployments streams, 1.x StreamEventMixin lineage): an event:error line flips the error flag, status: carries the mapped HTTP status (optional), and each data: line is one frame; an error frame ends the stream. Unlike SseStream, data lines are not joined across blank lines. Single-use, no background threads.