Class MemoryDataStoreFactory (1.41.8)

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().

Inheritance

java.lang.Object > AbstractDataStoreFactory > MemoryDataStoreFactory

Static Methods

getDefaultInstance()

public static MemoryDataStoreFactory getDefaultInstance()

Returns a global thread-safe instance.

Returns
TypeDescription
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
NameDescription
idString
Returns
TypeDescription
DataStore<V>
Overrides Exceptions
TypeDescription
IOException