Class EventInput

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    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 Detail

      • 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.