Interface AsyncDatastoreService
-
- All Superinterfaces:
BaseDatastoreService
- All Known Implementing Classes:
AdminDatastoreService
public interface AsyncDatastoreService extends BaseDatastoreService
An asynchronous version ofDatastoreService. All methods return immediately and provideFuturesas their return values.The key difference between implementations of
AsyncDatastoreServiceand implementations ofDatastoreServiceis that async implementations do not perform implicit transaction management. The reason is that implicit transaction management requires automatic commits of some transactions, and without some sort of callback mechanism there is no way to determine that a put/get/delete that has been implicitly enrolled in a transaction is complete and therefore ready to be committed. SeeImplicitTransactionManagementPolicyfor more information.
-
-
Method Summary
-
Methods inherited from interface com.google.appengine.api.datastore.BaseDatastoreService
getActiveTransactions, getCurrentTransaction, getCurrentTransaction, prepare, prepare
-
-
-
-
Method Detail
-
get
Future<Entity> get(@Nullable Transaction txn, Key key)
-
put
Future<Key> put(@Nullable Transaction txn, Entity entity)
-
delete
Future<Void> delete(@Nullable Transaction txn, Key... keys)
-
delete
Future<Void> delete(@Nullable Transaction txn, Iterable<Key> keys)
-
beginTransaction
Future<Transaction> beginTransaction()
-
beginTransaction
Future<Transaction> beginTransaction(TransactionOptions options)
-
getDatastoreAttributes
Future<DatastoreAttributes> getDatastoreAttributes()
-
getIndexes
Future<Map<Index,Index.IndexState>> getIndexes()
-
-