Package org.eclipse.rdf4j.sail.config
Class AbstractSailImplConfig
java.lang.Object
org.eclipse.rdf4j.sail.config.AbstractSailImplConfig
- All Implemented Interfaces:
SailImplConfig
- Direct Known Subclasses:
AbstractDelegatingSailImplConfig
,BaseSailConfig
Base implementation of
SailImplConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate long
private long
private String
private static final boolean
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new RepositoryConfigImpl.AbstractSailImplConfig
(String type) Create a new RepositoryConfigImpl. -
Method Summary
Modifier and TypeMethodDescriptionlong
Get the connection timeout (in ms).long
getType()
void
void
setConnectionTimeOut
(long connectionTimeOut) Set the connection timeout (in ms).void
setIterationCacheSyncThreshold
(long iterationCacheSyncThreshold) void
void
validate()
Validates this configuration.
-
Field Details
-
USE_CONFIG
private static final boolean USE_CONFIG -
type
-
iterationCacheSyncThreshold
private long iterationCacheSyncThreshold -
connectionTimeOut
private long connectionTimeOut
-
-
Constructor Details
-
AbstractSailImplConfig
public AbstractSailImplConfig()Create a new RepositoryConfigImpl. -
AbstractSailImplConfig
Create a new RepositoryConfigImpl.
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceSailImplConfig
-
setType
-
validate
Description copied from interface:SailImplConfig
Validates this configuration. ASailConfigException
is thrown when the configuration is invalid. The exception should contain an error message that indicates why the configuration is invalid.- Specified by:
validate
in interfaceSailImplConfig
- Throws:
SailConfigException
- If the configuration is invalid.
-
export
- Specified by:
export
in interfaceSailImplConfig
-
parse
- Specified by:
parse
in interfaceSailImplConfig
- Throws:
SailConfigException
-
getIterationCacheSyncThreshold
public long getIterationCacheSyncThreshold()- Specified by:
getIterationCacheSyncThreshold
in interfaceSailImplConfig
- Returns:
- Returns the iterationCacheSize.
-
setIterationCacheSyncThreshold
public void setIterationCacheSyncThreshold(long iterationCacheSyncThreshold) - Parameters:
iterationCacheSyncThreshold
- The iterationCacheSyncThreshold to set.
-
getConnectionTimeOut
public long getConnectionTimeOut()Get the connection timeout (in ms).- Returns:
- connection timeout (in ms)
-
setConnectionTimeOut
public void setConnectionTimeOut(long connectionTimeOut) Set the connection timeout (in ms).- Parameters:
connectionTimeOut
- timeout (in ms)
-