Package com.googlecode.objectify.impl
Interface AsyncDatastoreReaderWriter
-
- All Known Subinterfaces:
AsyncDatastore
,AsyncTransaction
,PrivateAsyncTransaction
- All Known Implementing Classes:
AsyncDatastoreImpl
,AsyncDatastoreReaderWriterImpl
,AsyncTransactionImpl
,CachingAsyncDatastore
,CachingAsyncDatastoreReaderWriter
,CachingAsyncTransaction
public interface AsyncDatastoreReaderWriter
The new datastore SDK has a neat structure of interfaces and implementations (transaction, datastorereader, etc) but doesn't currently support async operations. We need to shim in a Future-based API so that we can seamlessly support it when it becomes available. We'll remove this parallel hierarchy then.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Future<Void>
delete(Iterable<com.google.cloud.datastore.Key> keys)
default Future<Map<com.google.cloud.datastore.Key,com.google.cloud.datastore.Entity>>
get(com.google.cloud.datastore.Key... keys)
Future<Map<com.google.cloud.datastore.Key,com.google.cloud.datastore.Entity>>
get(Collection<com.google.cloud.datastore.Key> keys, com.google.cloud.datastore.ReadOption... options)
default Future<List<com.google.cloud.datastore.Key>>
put(com.google.cloud.datastore.FullEntity<?>... entities)
Future<List<com.google.cloud.datastore.Key>>
put(Iterable<? extends com.google.cloud.datastore.FullEntity<?>> entities)
<T> com.google.cloud.datastore.QueryResults<T>
run(com.google.cloud.datastore.Query<T> query)
-
-
-
Method Detail
-
get
Future<Map<com.google.cloud.datastore.Key,com.google.cloud.datastore.Entity>> get(Collection<com.google.cloud.datastore.Key> keys, com.google.cloud.datastore.ReadOption... options)
-
run
<T> com.google.cloud.datastore.QueryResults<T> run(com.google.cloud.datastore.Query<T> query)
-
put
Future<List<com.google.cloud.datastore.Key>> put(Iterable<? extends com.google.cloud.datastore.FullEntity<?>> entities)
-
get
default Future<Map<com.google.cloud.datastore.Key,com.google.cloud.datastore.Entity>> get(com.google.cloud.datastore.Key... keys)
-
-