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
ConstructorsConstructorDescriptionDeltaBasedVersionedMapStoreFactory(V defaultValue, VersionedMapStoreFactoryBuilder.DeltaTransactionStrategy deltaTransactionStrategy) -
Method Summary
Modifier and TypeMethodDescriptioncreateGroup(int amount) Constructs a group ofVersionedMaps 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:VersionedMapStoreFactoryConstructs a new instance ofVersionedMap.- Specified by:
createOnein interfaceVersionedMapStoreFactory<K,V> - Returns:
- The new instance.
-
createGroup
Description copied from interface:VersionedMapStoreFactoryConstructs a group ofVersionedMaps with the same configuration. If possible, the stores share resources with each other.- Specified by:
createGroupin 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.
-