class %SYSTEM.Context.CSP extends %Library.SystemBase
Property Inventory (Including Private)
Method Inventory (Including Private)
property persistentDevices as %String [ MultiDimensional ];
Array of devices that should not be closed after each request
method AddPersistentDevice(device As %String) [ Language = objectscript ]
Add the specified device to the list of persistent devices.
Devices in this list will not be closed after each request.
method IsPersistent(device As %String) as %Boolean [ Language = objectscript ]
Check if the specified device is in the list of persistent devices.
method NextPersistentDevice(device As %String, direction As %Integer = 1) [ Language = objectscript ]
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.
method PurgePersistentDevices() [ Language = objectscript ]
This method will remove any devices in the persistent list that are no longer open.
method RemoveAllPersistentDevices() [ Language = objectscript ]
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) [ Language = objectscript ]
Remove the specified device from the set of persistent devices.
This will allow the device to be closed normally after the current request.
Inherited Methods (Including Private)