BBjAppServer::setClientPollInterval

Description

In BBj 12.0 and higher, this method sets the length of time in seconds the web server will wait for the next command from BBjServices. If the web server does not receive a command from the server in the configured time period, it will send a heartbeat to the browser.

Syntax

Return Value

Method

void

setClientPollInterval(int interval)

Parameters

Variable

Description

interval

The maximum number of seconds between commands sent to the browser.

Return Value

None.

Remarks

None.

Example

rem ' BBjAppServer::setClientPollInterval

admin! = bbjapi().getAdmin("admin","admin123")

appServer! = admin!.getWebAppServer()

print "setClientPollInterval (heartbeat time):",

heartbeat = appServer!.getClientPollInterval()

appServer!.setClientPollInterval(heartbeat)

print heartbeat," seconds."

See Also

BBjAPI

BBjAppServer

BBjAppServer::getClientPollInterval

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.