class %SYSTEM.Context.CSP extends %Library.SystemBase
property persistentDevices as %String [ MultiDimensional ];
Array of devices that should not be closed after each request
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.
Check if the specified device is in the list of persistent devices.
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.
This method will remove any devices in the persistent list that are no longer open.
Remove all devices marked as persistent. The devices are not closed immediately;
they will be closed at the end of the current request
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.