parameters: (self, line)
docstring: Set a timeout in ms for a given entry; the table has to support timeouts: table_set_timeout <table_name> <entry handle> <timeout (ms)>
docstring_summary: Set a timeout in ms for a given entry; the table has to support timeouts: table_set_timeout <table_name> <entry handle> <timeout (ms)>
docstring_tokens: Set a timeout in ms for a given entry ; the table has to support timeouts : table_set_timeout <table_name > <entry handle > <timeout ( ms ) >
function: def do_table_set_timeout(self, line):
          "Set a timeout in ms for a given entry; the table has to support timeouts: table_set_timeout <table_name> <entry handle> <timeout (ms)>"
          args = line.split()
          self.exactly_n_args(args, 3)
  
          table_name = args[0]
          table = self.get_res("table", table_name, ResType.table)
          if not table.support_timeout:
              raise UIn_Error(
                  "Table {} does not support entry timeouts".format(table_name))
  
          try:
              entry_handle = int(args[1])
          except:
              raise UIn_Error("Bad format for entry handle")
  
          try:
              timeout_ms = int(args[2])
          except:
              raise UIn_Error("Bad format for timeout")
  
          print("Setting a", timeout_ms, "ms timeout for entry", entry_handle)
  
          self.client.bm_mt_set_entry_ttl(
              0, table.name, entry_handle, timeout_ms)
function_tokens: def do_table_set_timeout ( self , line ) : args = line . split ( ) self . exactly_n_args ( args , 3 ) table_name = args [ 0 ] table = self . get_res ( "table" , table_name , ResType . table ) if not table . support_timeout : raise UIn_Error ( "Table {} does not support entry timeouts" . format ( table_name ) ) try : entry_handle = int ( args [ 1 ] ) except : raise UIn_Error ( "Bad format for entry handle" ) try : timeout_ms = int ( args [ 2 ] ) except : raise UIn_Error ( "Bad format for timeout" ) print ( "Setting a" , timeout_ms , "ms timeout for entry" , entry_handle ) self . client . bm_mt_set_entry_ttl ( 0 , table . name , entry_handle , timeout_ms )