Interface AsyncDatastoreService
- All Superinterfaces:
BaseDatastoreService
- All Known Implementing Classes:
AdminDatastoreService
An asynchronous version of
DatastoreService
. All methods return immediately and provide
Futures
as their return values.
The key difference between implementations of AsyncDatastoreService
and
implementations of DatastoreService
is 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. See ImplicitTransactionManagementPolicy
for more
information.
-
Method Summary
Modifier and TypeMethodDescriptionallocateIds
(@Nullable Key parent, String kind, long num) allocateIds
(String kind, long num) beginTransaction
(TransactionOptions options) delete
(@Nullable Transaction txn, Key... keys) delete
(@Nullable Transaction txn, Iterable<Key> keys) get
(@Nullable Transaction txn, Key key) get
(@Nullable Transaction txn, Iterable<Key> keys) put
(@Nullable Transaction txn, Entity entity) put
(@Nullable Transaction txn, Iterable<Entity> entities) Methods inherited from interface com.google.appengine.api.datastore.BaseDatastoreService
getActiveTransactions, getCurrentTransaction, getCurrentTransaction, prepare, prepare
-
Method Details
-
get
-
get
-
get
-
get
-
put
-
put
-
put
-
put
-
delete
-
delete
-
delete
-
delete
-
beginTransaction
Future<Transaction> beginTransaction() -
beginTransaction
-
allocateIds
-
allocateIds
-
getDatastoreAttributes
Future<DatastoreAttributes> getDatastoreAttributes() -
getIndexes
Future<Map<Index,Index.IndexState>> getIndexes()
-