com.googlecode.objectify.AsyncObjectify Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of objectify Show documentation
Show all versions of objectify Show documentation
*** THIS VERSION UPLOADED FOR USE WITH CEDAR-COMMON, TO AVOID DEPENDENCIES ON GOOGLE CODE-BASED MAVEN REPOSITORIES. *** The simplest convenient interface to the Google App Engine datastore
The newest version!
package com.googlecode.objectify;
import java.util.Map;
import com.google.appengine.api.datastore.AsyncDatastoreService;
/**
* Provides asynchronous get/put/delete methods. Behavior is identical to the synchronous
* versions of these methods except that exceptions will be thrown when {@code Result.get()} is
* called.
*
* Note that there are no {@code query()} methods here. This is because queries are already
* inherently asynchronous; you can construct multiple iterators but the datastore will not block
* until you call {@code Iterator.hasNext()} or {@code Iterator.next()} for the first time.
*
* You can obtain an instance of this interface by calling {@code Objectify.async()}. See
* the javadocs of {@code Objectify} for method-level documentation.
*
* @author Jeff Schnitzer
*/
public interface AsyncObjectify
{
/**
* Get the synchronous version of Objectify.
*/
Objectify sync();
/**
* @see Objectify#get(Iterable)
*/
Result