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, WRITE_ONLY
Constructor and Description |
---|
AbstractSegmentedStoreConfiguration(AttributeSet attributes,
AsyncStoreConfiguration async) |
Modifier and Type | Method and Description |
---|---|
protected static String |
fileLocationTransform(String location,
int segment)
Transforms a file location to a segment based one.
|
T |
newConfigurationFrom(int segment)
Deprecated.
since 10.0 - please implement
newConfigurationFrom(int, InitializationContext) . |
T |
newConfigurationFrom(int segment,
InitializationContext ctx)
Same as
newConfigurationFrom(int) except that you can utilize the intialization context when
initializing the segmented store object. |
async, attributeDefinitionSet, attributes, equals, fetchPersistentState, hashCode, ignoreModifications, maxBatchSize, preload, properties, purgeOnStartup, segmented, shared, subElements, toString, transactional, writeOnly
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getElementDefinition
public AbstractSegmentedStoreConfiguration(AttributeSet attributes, AsyncStoreConfiguration async)
@Deprecated public T newConfigurationFrom(int segment)
newConfigurationFrom(int, InitializationContext)
.segment
- the segment to usepublic T newConfigurationFrom(int segment, InitializationContext ctx)
newConfigurationFrom(int)
except that you can utilize the intialization context when
initializing the segmented store object. This methodsegment
- the segment to usectx
- the initialization context from the persistence layerprotected 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 preserve this and could still
turn the segment into a directory.location
- original file locationsegment
- the segment to appendCopyright © 2021 JBoss by Red Hat. All rights reserved.