class_docstr: A config to define the behavior of the program execution. It allows to define (among other
  options) the following settings:
  
  - The default parallelism of the program, i.e., how many parallel tasks to use for
    all functions that do not define a specific value directly.
  
  - The number of retries in the case of failed executions.
  
  - The delay between execution retries.
  
  - The :class:`ExecutionMode` of the program: Batch or Pipelined.
    The default execution mode is :data:`ExecutionMode.PIPELINED`
  
  - Enabling or disabling the "closure cleaner". The closure cleaner pre-processes
    the implementations of functions. In case they are (anonymous) inner classes,
    it removes unused references to the enclosing class to fix certain serialization-related
    problems and to reduce the size of the closure.
  
  - The config allows to register types and serializers to increase the efficiency of
    handling *generic types* and *POJOs*. This is usually only needed
    when the functions return not only the types declared in their signature, but
    also subclasses of those types.
  
  :data:`PARALLELISM_DEFAULT`:
  
  The flag value indicating use of the default parallelism. This value can
  be used to reset the parallelism back to the default state.
  
  :data:`PARALLELISM_UNKNOWN`:
  
  The flag value indicating an unknown or unset parallelism. This value is
  not a valid parallelism and indicates that the parallelism should remain
  unchanged.
class_docstr_tok: ["A","config","to","define","the","behavior","of","the","program","execution",".","It","allows","to","define","(","among","other","options",")","the","following","settings",":","-","The","default","parallelism","of","the","program",",","i.e.",",","how","many","parallel","tasks","to","use","for","all","functions","that","do","not","define","a","specific","value","directly",".","-","The","number","of","retries","in","the","case","of","failed","executions",".","-","The","delay","between","execution","retries",".","-","The",":","class",":","`","ExecutionMode","`","of","the","program",":","Batch","or","Pipelined",".","The","default","execution","mode","is",":","data",":","`","ExecutionMode.PIPELINED","`","-","Enabling","or","disabling","the","``","closure","cleaner","''",".","The","closure","cleaner","pre-processes","the","implementations","of","functions",".","In","case","they","are","(","anonymous",")","inner","classes",",","it","removes","unused","references","to","the","enclosing","class","to","fix","certain","serialization-related","problems","and","to","reduce","the","size","of","the","closure",".","-","The","config","allows","to","register","types","and","serializers","to","increase","the","efficiency","of","handling","*","generic","types","*","and","*","POJOs","*",".","This","is","usually","only","needed","when","the","functions","return","not","only","the","types","declared","in","their","signature",",","but","also","subclasses","of","those","types",".",":","data",":","`","PARALLELISM_DEFAULT","`",":","The","flag","value","indicating","use","of","the","default","parallelism",".","This","value","can","be","used","to","reset","the","parallelism","back","to","the","default","state",".",":","data",":","`","PARALLELISM_UNKNOWN","`",":","The","flag","value","indicating","an","unknown","or","unset","parallelism",".","This","value","is","not","a","valid","parallelism","and","indicates","that","the","parallelism","should","remain","unchanged","."]
docstr: Returns the restart strategy which has been set for the current job.
  
  .. seealso:: :func:`set_restart_strategy`
  
  :return: The specified restart configuration.
code: def get_restart_strategy(self) -> RestartStrategyConfiguration:
      """
      Returns the restart strategy which has been set for the current job.
  
      .. seealso:: :func:`set_restart_strategy`
  
      :return: The specified restart configuration.
      """
      return RestartStrategies._from_j_restart_strategy(
          self._j_execution_config.getRestartStrategy()
      )
  
imports: import warnings
  from typing import Dict, List
  from pyflink.common.execution_mode import ExecutionMode
  from pyflink.common.input_dependency_constraint import InputDependencyConstraint
  from pyflink.common.restart_strategy import RestartStrategies, RestartStrategyConfiguration
  from pyflink.java_gateway import get_gateway
  from pyflink.util.java_utils import load_java_class
label_desc: Use image node_id 18 for calling the ExecutionConfig obj's underlying member method code with example usage: obj.get_restart_strategy() and returns: RestartStrategies