Class ChannelStateWriterImpl

java.lang.Object
org.apache.flink.runtime.checkpoint.channel.ChannelStateWriterImpl
All Implemented Interfaces:
Closeable, AutoCloseable, ChannelStateWriter

@Internal @ThreadSafe public class ChannelStateWriterImpl extends Object implements ChannelStateWriter
ChannelStateWriter implemented using CheckpointStateOutputStreams. Internally, it has by default
  • one stream per checkpoint; having multiple streams would mean more files written and more connections opened (and more latency on restore)
  • one thread; having multiple threads means more connections, couples with the implementation and increases complexity

Thread-safety: this class is thread-safe when used with a thread-safe executor (e.g. default ChannelStateWriteRequestExecutorImpl.