Interface ConditionalOutputStreamFactory

    • Method Detail

      • createConditionalOutputStream

        ConditionalOutputStream createConditionalOutputStream​(Segment segment,
                                                              DelegationTokenProvider tokenProvider,
                                                              EventWriterConfig config)
        Opens an existing segment for conditional append operations. This operation will throw NoSuchSegmentException if the segment does not exist. This operation may be called multiple times on the same segment from the same client (i.e., there can be concurrent conditional clients in the same process space).
        Parameters:
        segment - The segment to create a conditional client for.
        tokenProvider - The DelegationTokenProvider instance to be used for obtaining a delegation token.
        config - output writer configuration.
        Returns:
        New instance of ConditionalOutputStream for the provided segment.