Package io.pravega.client.state
Class SynchronizerConfig.SynchronizerConfigBuilder
- java.lang.Object
-
- io.pravega.client.state.SynchronizerConfig.SynchronizerConfigBuilder
-
- Enclosing class:
- SynchronizerConfig
public static class SynchronizerConfig.SynchronizerConfigBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SynchronizerConfig
build()
SynchronizerConfig.SynchronizerConfigBuilder
eventWriterConfig(EventWriterConfig eventWriterConfig)
This writer config is used by the segment writers in the StateSyncrhonizer.SynchronizerConfig.SynchronizerConfigBuilder
readBufferSize(int readBufferSize)
This size is used to allocate buffer space for the bytes the reader in the StateSyncrhonizer reads from the segment.java.lang.String
toString()
-
-
-
Method Detail
-
eventWriterConfig
public SynchronizerConfig.SynchronizerConfigBuilder eventWriterConfig(EventWriterConfig eventWriterConfig)
This writer config is used by the segment writers in the StateSyncrhonizer. The default values enable connection pooling and ensures the background connection retry attempts continue until the StateSyncrhonizer is closed.- Returns:
this
.
-
readBufferSize
public SynchronizerConfig.SynchronizerConfigBuilder readBufferSize(int readBufferSize)
This size is used to allocate buffer space for the bytes the reader in the StateSyncrhonizer reads from the segment. The default buffer size is 256KB.- Returns:
this
.
-
build
public SynchronizerConfig build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-