Ctrl+K
Logo image Logo image

Site Navigation

  • API Reference
  • Examples

Site Navigation

  • API Reference
  • Examples

Section Navigation

  • PyFlink Table
  • PyFlink DataStream
    • StreamExecutionEnvironment
    • DataStream
    • Functions
    • State
    • Timer
    • Window
    • Checkpoint
    • Side Outputs
    • Connectors
    • Formats
  • PyFlink Common

pyflink.datastream.stream_execution_environment.StreamExecutionEnvironment.set_buffer_timeout#

StreamExecutionEnvironment.set_buffer_timeout(timeout_millis: int) → pyflink.datastream.stream_execution_environment.StreamExecutionEnvironment[source]#

Sets the maximum time frequency (milliseconds) for the flushing of the output buffers. By default the output buffers flush frequently to provide low latency and to aid smooth developer experience. Setting the parameter can result in three logical modes:

  • A positive integer triggers flushing periodically by that integer

  • 0 triggers flushing after every record thus minimizing latency

  • -1 triggers flushing only when the output buffer is full thus maximizing throughput

Parameters

timeout_millis – The maximum time between two output flushes.

Returns

This object.

previous

pyflink.datastream.stream_execution_environment.StreamExecutionEnvironment.set_runtime_mode

next

pyflink.datastream.stream_execution_environment.StreamExecutionEnvironment.get_buffer_timeout

Show Source

Created using Sphinx 4.5.0.