Class EventInput

All Implemented Interfaces:
Closeable, AutoCloseable
Direct Known Subclasses:
SseEventPublisher

public class EventInput extends ChunkedInput<InboundEvent>
Inbound Server-Sent Events channel. The input channel lets you serially read & consume SSE events as they arrive.
Author:
Marek Potociar
  • Constructor Details

    • EventInput

      protected EventInput(InputStream inputStream, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> headers, MessageBodyWorkers messageBodyWorkers, PropertiesDelegate propertiesDelegate)
      Package-private constructor used by the ChunkedInputReader.
      Parameters:
      inputStream - response input stream.
      annotations - annotations associated with response entity.
      mediaType - response entity media type.
      headers - response headers.
      messageBodyWorkers - message body workers.
      propertiesDelegate - properties delegate for this request/response.