Class ClientStreamManager

    • Method Detail

      • isActive

        public final boolean isActive()
        Returns true, as soon as the server has enabled stream management, i.e. if both client and server are using stream management.
        Returns:
        True, as soon as the server has enabled stream management.
      • isResumable

        public final boolean isResumable()
        If the server will allow the stream to be resumed.
        Returns:
        If the server will allow the stream to be resumed.
      • getStreamManagementId

        public final String getStreamManagementId()
        Gets the "SM-ID".

        The 'id' attribute defines a unique identifier for purposes of stream management (an "SM-ID"). The SM-ID MUST be generated by the server. The client MUST consider the SM-ID to be opaque and therefore MUST NOT assign any semantic meaning to the SM-ID.

        Returns:
        The "SM-ID".
      • resume

        public AsyncResult<Boolean> resume()
        Resumes the stream.
        Returns:
        The async result, which is done, if either the stream is not resumable, or the server resumed the stream.
        See Also:
        5. Resumption
      • process

        public void process​(StreamElement streamElement,
                            Writer writer,
                            WriterInterceptorChain chain)
                     throws Exception
        Description copied from interface: WriterInterceptor
        The stream element which will be written.
        Specified by:
        process in interface WriterInterceptor
        Parameters:
        streamElement - The stream element which will be written.
        writer - The writer to which the stream element is written.
        chain - The writer chain, which allows to proceed to the next interceptor.
        Throws:
        Exception - Any exception happening during interception.