Package io.pravega.client.segment.impl
Class ConditionalOutputStreamFactoryImpl
- java.lang.Object
-
- io.pravega.client.segment.impl.ConditionalOutputStreamFactoryImpl
-
- All Implemented Interfaces:
ConditionalOutputStreamFactory
public class ConditionalOutputStreamFactoryImpl extends java.lang.Object implements ConditionalOutputStreamFactory
-
-
Constructor Summary
Constructors Constructor Description ConditionalOutputStreamFactoryImpl(Controller controller, ConnectionPool cp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConditionalOutputStreamcreateConditionalOutputStream(Segment segment, DelegationTokenProvider tokenProvider, EventWriterConfig config)Opens an existing segment for conditional append operations.
-
-
-
Constructor Detail
-
ConditionalOutputStreamFactoryImpl
@ConstructorProperties({"controller","cp"}) public ConditionalOutputStreamFactoryImpl(Controller controller, ConnectionPool cp)
-
-
Method Detail
-
createConditionalOutputStream
public ConditionalOutputStream createConditionalOutputStream(Segment segment, DelegationTokenProvider tokenProvider, EventWriterConfig config)
Description copied from interface:ConditionalOutputStreamFactoryOpens an existing segment for conditional append operations. This operation will throwNoSuchSegmentExceptionif 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).- Specified by:
createConditionalOutputStreamin interfaceConditionalOutputStreamFactory- Parameters:
segment- The segment to create a conditional client for.tokenProvider- TheDelegationTokenProviderinstance to be used for obtaining a delegation token.config- output writer configuration.- Returns:
- New instance of ConditionalOutputStream for the provided segment.
-
-