Polling

Polling

new Polling(optionsopt)

Source:

Represents polling information for a Catalog Item.

Parameters:
Name Type Attributes Description
options Object <optional>

The values of the properties of the new instance.

Properties
Name Type Attributes Description
seconds String | Number <optional>

The number of seconds to wait before polling for new data.

url String <optional>

The URL from which to poll for new data.

replace Boolean <optional>

Should the newly polled data replace the existing data (true), or be appended to it (false)?

Members

isPolling :Boolean

Source:
Default Value:
  • false

Are we currently polling for new data?

Type:
  • Boolean

nextScheduledUpdateTime :Date

Source:

Time of the next scheduled data update. Consumed by view layer to show refresh timers. Only defined if polling is occuring.

Type:
  • Date

replace :Boolean

Source:
Default Value:
  • false

Gets or sets a flag which says whether polled data should replace the existing data, or appended to it. If defined, the data received is added to the existing TableStructure. Otherwise, it replaces the TableStructure.

Type:
  • Boolean

seconds :Number

Source:
Default Value:
  • undefined

Gets or sets the number of seconds to wait before polling for new data. If this.pollUrl is defined, it polls this.pollUrl and adds the data received to the existing TableStructure. If this.pollUrl is undefined, it polls this.url and replaces its TableStructure with the new one. If undefined (the default) or 0, no polling occurs.

Type:
  • Number

url :String

Source:
Default Value:
  • undefined

Gets or sets the URL from which to poll for new data. If defined, the data received is added to the existing TableStructure. Otherwise, it replaces the TableStructure.

Type:
  • String