public static class ReaderGroupConfig.ReaderGroupConfigBuilder extends java.lang.Object implements io.pravega.common.ObjectBuilder<ReaderGroupConfig>
Constructor and Description |
---|
ReaderGroupConfigBuilder() |
Modifier and Type | Method and Description |
---|---|
ReaderGroupConfig |
build() |
ReaderGroupConfig.ReaderGroupConfigBuilder |
disableAutomaticCheckpoints()
Disables automatic checkpointing.
|
ReaderGroupConfig.ReaderGroupConfigBuilder |
startFromCheckpoint(Checkpoint checkpoint)
Ensure the readers of the ReaderGroup start from the provided
Checkpoint . |
ReaderGroupConfig.ReaderGroupConfigBuilder |
startFromStreamCuts(java.util.Map<Stream,StreamCut> streamCuts)
Ensure the readers of the ReaderGroup start from this provided streamCuts.
|
ReaderGroupConfig.ReaderGroupConfigBuilder |
stream(Stream stream)
Add a stream that needs to be read by the readers of a ReaderGroup.
|
ReaderGroupConfig.ReaderGroupConfigBuilder |
stream(Stream stream,
StreamCut startStreamCut)
Add a stream and its associated start
StreamCut to be read by the readers of a ReaderGroup. |
ReaderGroupConfig.ReaderGroupConfigBuilder |
stream(Stream stream,
StreamCut startStreamCut,
StreamCut endStreamCut)
|
ReaderGroupConfig.ReaderGroupConfigBuilder |
stream(java.lang.String scopedStreamName)
Add a stream that needs to be read by the readers of a ReaderGroup.
|
ReaderGroupConfig.ReaderGroupConfigBuilder |
stream(java.lang.String scopedStreamName,
StreamCut startStreamCut)
Add a stream and its associated start
StreamCut to be read by the readers of a ReaderGroup. |
ReaderGroupConfig.ReaderGroupConfigBuilder |
stream(java.lang.String scopedStreamName,
StreamCut startStreamCut,
StreamCut endStreamCut)
|
public ReaderGroupConfig.ReaderGroupConfigBuilder disableAutomaticCheckpoints()
ReaderGroup.initiateCheckpoint(String, ScheduledExecutorService)
.public ReaderGroupConfig.ReaderGroupConfigBuilder stream(java.lang.String scopedStreamName, StreamCut startStreamCut, StreamCut endStreamCut)
public ReaderGroupConfig.ReaderGroupConfigBuilder stream(java.lang.String scopedStreamName, StreamCut startStreamCut)
StreamCut
to be read by the readers of a ReaderGroup.scopedStreamName
- Scoped Name of the Stream.startStreamCut
- Start StreamCut
.public ReaderGroupConfig.ReaderGroupConfigBuilder stream(java.lang.String scopedStreamName)
scopedStreamName
- Stream name.public ReaderGroupConfig.ReaderGroupConfigBuilder stream(Stream stream, StreamCut startStreamCut, StreamCut endStreamCut)
public ReaderGroupConfig.ReaderGroupConfigBuilder stream(Stream stream, StreamCut startStreamCut)
StreamCut
to be read by the readers of a ReaderGroup.stream
- Stream.startStreamCut
- Start StreamCut
public ReaderGroupConfig.ReaderGroupConfigBuilder stream(Stream stream)
stream
- Stream.public ReaderGroupConfig.ReaderGroupConfigBuilder startFromStreamCuts(java.util.Map<Stream,StreamCut> streamCuts)
public ReaderGroupConfig.ReaderGroupConfigBuilder startFromCheckpoint(Checkpoint checkpoint)
Checkpoint
.checkpoint
- Checkpoint
.public ReaderGroupConfig build()
build
in interface io.pravega.common.ObjectBuilder<ReaderGroupConfig>