public abstract class AbstractSegmentedStoreConfiguration<T extends AbstractStoreConfiguration> extends AbstractStoreConfiguration
attributes, FETCH_PERSISTENT_STATE, IGNORE_MODIFICATIONS, MAX_BATCH_SIZE, PRELOAD, PROPERTIES, PURGE_ON_STARTUP, SEGMENTED, SHARED, TRANSACTIONAL
Constructor and Description |
---|
AbstractSegmentedStoreConfiguration(AttributeSet attributes,
AsyncStoreConfiguration async,
SingletonStoreConfiguration singletonStore) |
Modifier and Type | Method and Description |
---|---|
protected static String |
fileLocationTransform(String location,
int segment)
Transforms a file location to a segment based one.
|
abstract T |
newConfigurationFrom(int segment)
Method that is invoked each time a new store is created for a segment.
|
async, attributeDefinitionSet, attributes, equals, fetchPersistentState, hashCode, ignoreModifications, maxBatchSize, preload, properties, purgeOnStartup, segmented, shared, singletonStore, toString, transactional
public AbstractSegmentedStoreConfiguration(AttributeSet attributes, AsyncStoreConfiguration async, SingletonStoreConfiguration singletonStore)
public abstract T newConfigurationFrom(int segment)
segment
- the segment to useprotected static String fileLocationTransform(String location, int segment)
File.separatorChar
, it will add a new directory onto that that is the segment. If the
location is a file, that is that it is not terminated by File.separatorChar
, this will treat the location
as a directory and append a segment file in it. The underlying store may or may not preseve this and could still
turn the segment into a directory.location
- original file locationsegment
- the segment to appendCopyright © 2019 JBoss, a division of Red Hat. All rights reserved.