DataStoreFactorypublic class MemoryDataStoreFactory extends AbstractDataStoreFactory
For convenience, a default global instance is provided in getDefaultInstance().
| Constructor | Description |
|---|---|
MemoryDataStoreFactory() |
| Modifier and Type | Method | Description |
|---|---|---|
protected <V extends Serializable> |
createDataStore(String id) |
Returns a new instance of a type-specific data store based on the given unique ID.
|
static MemoryDataStoreFactory |
getDefaultInstance() |
Returns a global thread-safe instance.
|
getDataStoreprotected <V extends Serializable> DataStore<V> createDataStore(String id) throws IOException
AbstractDataStoreFactory
The DataStore.getId() must match the id parameter from this method.
createDataStore in class AbstractDataStoreFactoryV - serializable type of the mapped valueid - unique ID to refer to typed data storeIOExceptionpublic static MemoryDataStoreFactory getDefaultInstance()
Copyright © 2011–2019 Google. All rights reserved.