Starting and Stopping the Java SDK

Start the Java SDK before performing operations.

Initializing the SDK prompts it to start its internal threads and register required resources. This call can be made from any thread, but it must be made before any other SDK functionality is used.

Example:

	static final SDK sdk = SDK.getInstance();// retrieve the SDK singleton
	sdk.start();                                // start the SDK

Stop the Java SDKonce the application using Java SDK is ready to exit or its functionality is no longer needed. This stops its internal threads and releases any held resources.

Example:

	sdk.stop(); = esp_sdk_stop(error);  // stop the SDK

Multiple SDK start calls may be made. The Java SDK requires a corresponding number of stop calls to properly shut down.