Skip to main content

%SYSTEM.Context.CSP

Class %SYSTEM.Context.CSP Extends %Library.SystemBase

Properties

SQLGatewayTimeout

Property SQLGatewayTimeout As %Integer;

Timeout (in seconds) for SQL Gateway connections. If a connection has not been used for longer than this time, it will be terminated. The timeout is applied at the end of each CSP request.

AuthTokenInfo

Property AuthTokenInfo As %DynamicObject;

persistentDevices

Property persistentDevices As %String [ MultiDimensional ];

Array of devices that should not be closed after each request

Methods

%OnNew

Method %OnNew() As %Status [ Private ]

AddPersistentDevice

Method AddPersistentDevice(device As %String)

Add the specified device to the list of persistent devices. Devices in this list will not be closed after each request.

RemovePersistentDevice

Method RemovePersistentDevice(device As %String)

Remove the specified device from the set of persistent devices. This will allow the device to be closed normally after the current request.

IsPersistent

Method IsPersistent(device As %String) As %Boolean

Check if the specified device is in the list of persistent devices.

PurgePersistentDevices

Method PurgePersistentDevices()

This method will remove any devices in the persistent list that are no longer open.

RemoveAllPersistentDevices

Method RemoveAllPersistentDevices()

Remove all devices marked as persistent. The devices are not closed immediately; they will be closed at the end of the current request

NextPersistentDevice

Method NextPersistentDevice(device As %String, direction As %Integer = 1)

Given a device, this method returns the next persistent device in this list, in collation order. This can be used to iterate over the list of devices.

device indicates the current location of the iterator. Specify "" to retrieve the first device

direction specify 1 to retrieve the next device in collation order, or -1 to retrieve the previous device. The default is 1.

returns the next device, or "" if there are no more devices.