dispose
void dispose()
Performs the following operations:
- Deletes the application context object.
- Sends the pending usage data to the Sentinel Cloud Connect. See Set Optimal Time to Transfer Usage Logs.
It is necessary to call this API to delete the application context object.
NOTE After an application context object has been deleted, you need to initialize an application context object again before using any API.
Set Optimal Time to Transfer Usage Logs
After calling dispose, the application attempts to send usage data to the cloud for the period specified by the UsageSyncFrequency property in the configuration file. . The value of this property is 300 seconds by default, and can be changed in the configuration file.
The value of this property should be optimal. Lesser time interval degrades performance and more time interval causes accumulation of usage logs, which constantly consumes critical memory resources. The value should be kept after judging the application load. If the application load is aggressive, that is, number of login-logout calls is high, a small value can be kept. If the load is moderate, the value need not be very aggressive.
Exception Handling
If unsuccessful, throws LicensingException.