public class MemoryDataStoreFactory extends AbstractDataStoreFactory
For convenience, a default global instance is provided in getDefaultInstance().
| Constructor and Description |
|---|
MemoryDataStoreFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected <V extends java.io.Serializable> |
createDataStore(java.lang.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 java.io.Serializable> DataStore<V> createDataStore(java.lang.String id) throws java.io.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 storejava.io.IOExceptionpublic static MemoryDataStoreFactory getDefaultInstance()
Copyright © 2011-2018 Google. All Rights Reserved.