{
  "synLogic": "int $ret \u003d $api($1, $2, $3);",
  "help": "This function sets the timeout value for a TIBCO connection specified by the jpid parameter. If the connection is not established within the specified timeout period, the connection attempt will be aborted and an error message will be returned in the error_msg parameter.",
  "notes": "Fields: \nkey: JMS Key \ntimeout: value of time in seconds",
  "returns": "This function returns an integer value, which indicates whether the operation was successful or not. A value of 0 indicates success, while any other value indicates failure.",
  "arguments": "\u003ctable class\u003d\"newGuiTable\" style\u003d\"width:100%\" \u003e \u003ctr\u003e \u003cth\u003e Argument \u003c/th\u003e \u003cth\u003e Description \u003c/th\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd\u003e JPID \u003c/td\u003e \u003ctd\u003e The ID of the TIBCO connection for which the timeout is to be set \u003c/td\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd\u003e Timeout \u003c/td\u003e \u003ctd\u003e  The timeout value to be set. \u003c/td\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd\u003e Error Message \u003c/td\u003e \u003ctd\u003e A pointer to a character buffer that will hold any error message generated by this function. \u003c/td\u003e \u003c/tr\u003e \u003c/table\u003e",
  "parameterization": "",
  "name": "ns_tibco_set_Connection_timeout",
  "syntax": "int ns_tibco_set_Connection_timeout(int jpid, double timeout, char *error_msg)",
  "javaSyntax": "int ns_tibco_set_Connection_timeout(int jpid, double timeout, char *error_msg)",
  "cEx": "flow()\n{\n  int jpid = 1234;\n  double timeout = 10.0;  char error_msg[256] = {0};\n\n  int result = ns_tibco_set_Connection_timeout(jpid, timeout, error_msg);\n  if (result != 0)  {\n    printf(\"Error setting connection timeout: %s\", error_msg);\n  }\n\n}",
  "javaEx": "flow()\n{\n  int jpid = 1234;\n  double timeout = 10.0;  char error_msg[256] = {0};\n\n  int result = ns_tibco_set_Connection_timeout(jpid, timeout, error_msg);\n  if (result != 0)  {\n    printf(\"Error setting connection timeout: %s\", error_msg);\n  }\n\n}",
  "insertStrC": "ns_tibco_set_Connection_timeout(int jpid, double timeout, char *error_msg);",
  "insertStrJava": "ns_tibco_set_Connection_timeout(int jpid, double timeout, char *error_msg);",
  "description": "The ns_tibco_set_connection_timeout API is used to set connection timeout. If connection is not created within the given time, an exception is encountered.",
  "component": [
    {
      "id": "$1",
      "type": "TextField",
      "label": "JMS Pool Id",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter JMS Pool Id",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Number",
        "required": true,
	"max": 2147483647,
        "min": 0
	}
    },
    {
      "id": "$2",
      "type": "TextField",
      "label": "Timeout",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Timeout should be numeric",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
	  "quotes" : false,
      "validate": {
        "inputType": "Text",
        "required": true,
		"pattern": "^[0-9]+(\.[0-9]*)?$",
		"max": 0,
		"min": 0
		}
    },
    {
      "id": "$3",
      "type": "TEXT_VAR",
      "label": "Error message",
      "labelVarCheckbox": "If error message is a program variable",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter error message",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Text",
        "required": true
		}
    },
    {
      "id": "$ret",
      "type": "TextField",
      "label": "Return Variable",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "First character must be Alpha.\r\nOther characters are Alpha, Numeric or Underscore",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Text",
        "required": false,
		"pattern": "^[a-zA-Z][a-zA-Z0-9_]{0,63}$",
        "method": "isValidVar(arg)"
      }
    }
  ]
}
