Package com


package com
Contains the CloudBackend SDK for Java.

Software Development Kit

pin SDK for Java, with the Asynchronous API for the CloudBackend Singularity database service.

Asynchronous API

Working asynchronously means that the main thread may continue to work while there is a separate parallel thread delegate created that will wait for the response, process the response, and optionally make any follow up processing or hand over. This means that the applications you write on top of the SDK will be event-driven instead of being triggered by a main loop. The end user experience will be a user interface that is responsive and does not freese while waiting for a server response. Working this way guarantees everything presented to the end user has been propagated to the Singularity Database and will be what is retrieved if another client communicates with the database.

SDK

login()

User can log in by calling login() submitting parameters with the credentials of:

  • username
  • password
  • tenant
  • client
Create a Delegate that will get an input-callback of either:
  • success
  • error
Call the logIn() with credentials and the pointer to the delegate that is going to handle the callback. Normally you need to wait for the completion and then, depending on if the result was success or error, take an appropriate action.

Examples

See the Example code included in the SDK package, how to.

Tutorial

See the overview and the tutorial in the dashboard documentation

Accnowledgement

Java is a registered trademark of Oracle.

Since:
1.3