public class MemoryDataStoreFactory extends AbstractDataStoreFactory
Thread-safe in-memory implementation of a data store factory.
For convenience, a default global instance is provided in #getDefaultInstance().
Static Methods
getDefaultInstance()
public static MemoryDataStoreFactory getDefaultInstance()
Returns a global thread-safe instance.
Returns | |
---|---|
Type | Description |
MemoryDataStoreFactory |
Constructors
MemoryDataStoreFactory()
public MemoryDataStoreFactory()
Methods
<V>createDataStore(String id)
protected DataStore<V> <V>createDataStore(String id)
Returns a new instance of a type-specific data store based on the given unique ID.
The DataStore#getId() must match the id
parameter from this method.
Parameter | |
---|---|
Name | Description |
id |
String |
Returns | |
---|---|
Type | Description |
DataStore<V> |
Exceptions | |
---|---|
Type | Description |
IOException |