Class DeltaBasedVersionedMapStoreFactory<K,V>
java.lang.Object
tools.refinery.store.map.internal.delta.DeltaBasedVersionedMapStoreFactory<K,V>
- All Implemented Interfaces:
VersionedMapStoreFactory<K,
V>
public class DeltaBasedVersionedMapStoreFactory<K,V>
extends Object
implements VersionedMapStoreFactory<K,V>
-
Constructor Summary
ConstructorDescriptionDeltaBasedVersionedMapStoreFactory
(V defaultValue, VersionedMapStoreFactoryBuilder.DeltaTransactionStrategy deltaTransactionStrategy) -
Method Summary
Modifier and TypeMethodDescriptioncreateGroup
(int amount) Constructs a group ofVersionedMap
s with the same configuration.Constructs a new instance ofVersionedMap
.
-
Constructor Details
-
DeltaBasedVersionedMapStoreFactory
public DeltaBasedVersionedMapStoreFactory(V defaultValue, VersionedMapStoreFactoryBuilder.DeltaTransactionStrategy deltaTransactionStrategy)
-
-
Method Details
-
createOne
Description copied from interface:VersionedMapStoreFactory
Constructs a new instance ofVersionedMap
.- Specified by:
createOne
in interfaceVersionedMapStoreFactory<K,
V> - Returns:
- The new instance.
-
createGroup
Description copied from interface:VersionedMapStoreFactory
Constructs a group ofVersionedMap
s with the same configuration. If possible, the stores share resources with each other.- Specified by:
createGroup
in interfaceVersionedMapStoreFactory<K,
V> - Parameters:
amount
- The amount of new instances to be created.- Returns:
- A list of new stores with the given number of elements.
-