class_docstr: Rowtime descriptor for describing an event time attribute in the schema.
class_docstr_tok: ["Rowtime","descriptor","for","describing","an","event","time","attribute","in","the","schema","."]
docstr: Sets a custom watermark strategy to be used for the rowtime attribute.
  
  :param strategy: The java fully-qualified class name of the WatermarkStrategy. The
                   WatermarkStrategy must have a public no-argument constructor and can be
                   founded by in current Java classloader.
  :return: This rowtime descriptor.
docstr_tok: ["Sets","a","custom","watermark","strategy","to","be","used","for","the","rowtime","attribute",".",":","param","strategy",":","The","java","fully-qualified","class","name","of","the","WatermarkStrategy",".","The","WatermarkStrategy","must","have","a","public","no-argument","constructor","and","can","be","founded","by","in","current","Java","classloader",".",":","return",":","This","rowtime","descriptor","."]
code: def watermarks_from_strategy(self, strategy: str) -> "Rowtime":
      """
      Sets a custom watermark strategy to be used for the rowtime attribute.
  
      :param strategy: The java fully-qualified class name of the WatermarkStrategy. The
                       WatermarkStrategy must have a public no-argument constructor and can be
                       founded by in current Java classloader.
      :return: This rowtime descriptor.
      """
      gateway = get_gateway()
      self._j_rowtime = self._j_rowtime.watermarksFromStrategy(
          gateway.jvm.Thread.currentThread()
          .getContextClassLoader()
          .loadClass(strategy)
          .newInstance()
      )
      return self
  
imports: import sys
  from abc import ABCMeta
  from collections import OrderedDict
  from py4j.java_gateway import get_method
  from typing import Dict, Union
  from pyflink.java_gateway import get_gateway
  from pyflink.table.table_schema import TableSchema
  from pyflink.table.types import DataType, _to_java_data_type
label_desc: Use image node_id 8 for calling the Rowtime obj's underlying member method code with example usage: obj.watermarks_from_strategy(strategy) and returns: self