public class AppEngineDataStoreFactory extends AbstractDataStoreFactory
For convenience, a default global instance is provided in getDefaultInstance().
By default, it uses the Memcache API as an in-memory data cache. To disable it, call AppEngineDataStoreFactory.Builder.setDisableMemcache(boolean). The Memcache is only read to check if a key already has a
value inside DataStore.get(String). The values in the Memcache are updated in the DataStore.get(String), DataStore.set(String, Serializable), DataStore.delete(String), DataStore.values(), and DataStore.clear() methods.
| Modifier and Type | Class and Description |
|---|---|
static class |
AppEngineDataStoreFactory.Builder
App Engine data store factory builder.
|
| Constructor and Description |
|---|
AppEngineDataStoreFactory() |
AppEngineDataStoreFactory(AppEngineDataStoreFactory.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
protected <V extends Serializable> |
createDataStore(String id) |
static AppEngineDataStoreFactory |
getDefaultInstance()
Returns a global thread-safe instance based on the default constructor
AppEngineDataStoreFactory(). |
boolean |
getDisableMemcache()
Returns whether to disable the memcache (which is enabled by default).
|
getDataStorepublic AppEngineDataStoreFactory()
public AppEngineDataStoreFactory(AppEngineDataStoreFactory.Builder builder)
builder - builderprotected <V extends Serializable> DataStore<V> createDataStore(String id) throws IOException
createDataStore in class AbstractDataStoreFactoryIOExceptionpublic boolean getDisableMemcache()
public static AppEngineDataStoreFactory getDefaultInstance()
AppEngineDataStoreFactory().Copyright © 2011–2025 Google. All rights reserved.