10.5.4.5. JdbcStringBasedCacheStore Remote Configuration Attributes
JdbcStringBasedCacheStore in JBoss Data Grid's Remote Client-Server mode.
The cache-container element specifies information about the cache container.
- The
nameparameter defines the name of the cache container. - The
default-cacheparameter defines the name of the default cache used with the cache container. - The
listener-executordefines the executor used for asynchronous cache listener notifications. - The
startparameter indicates where the cache container starts, i.e. whether it will start lazily when requested or when the server starts up. Valid values for this parameter areEAGERandLAZY.
The local-cache element specifies information about the local cache used with the cache container.
- The
nameparameter specifies the name of the local cache to use. - The
startparameter indicates where the cache starts, i.e. whether it will start lazily when requested or when the server starts up. Valid values for this parameter areEAGERandLAZY. - The
batchingparameter specifies whether batching is enabled for the local cache. - The
indexingparameter specifies the type of indexing used for the local cache. Valid values for this parameter areNONE,LOCALandALL.
The transport element contains a description of the transport used by the cache container.
- The
stackparameter specified the JGroups stack used for the transport. - The
executorparameter specifies the executor used for the transport. - The
lock-timeoutparameter specifies the timeout value for locks for the transport.
The replicated-cache element specifies information about the replicated cache in use.
- The
nameparameter specifies the name of the replicated cache. - The
startparameter specifies whether the cache starts up on demand or immediately. Valid values for this parameter areEAGERandLAZY. - The
modeparameter specifies the cache mode for the replicated cache. Valid values for this parameter areSYNCandASYNC. - The
batchingparameter specifies whether batching can be used with the replicated cache. - The
indexingparameter specifies whether entries added to the cache are indexed. If enabled, indexes update as entries change or are removed from the replicated cache. - The
remote-timeoutparameter specifies the time period a remote call waits for acknowledgment. After the specified interval, the remote call aborts and an exception is thrown. This parameter is used in conjunction with theASYNCmode parameter.
The locking element details the locking configuration for the local cache.
- The
isolationparameter defines the isolation level used for the local cache. Valid values for this parameter areREPEATABLE_READandREAD_COMMITTED. - The
acquire-timeoutparameter specifies the number of milliseconds after which an acquire operation will time out. - The
concurrency-levelparameter defines the number of lock stripes used by the LockManager. - The
stripingparameter specifies whether lock striping will be used for the local cache.
The transaction element specifies transaction related settings for the local cache.
- The
modeparameter specifies the transaction mode used for the local cache. Valid values for this parameter areNONE,NON_XA(does not use XAResource),NON_DURABLE_XA(uses XAResource without recovery) andFULL_XA(used XAResource with recovery).
The eviction element specifies eviction configuration information for the local cache.
- The
strategyparameter specifies the eviction strategy or algorithm used. Valid values for this parameter includeNONE,FIFO,LRU,UNORDEREDandLIRS. - The
max-entriesparameter specifies the maximum number of entries in a cache instance.
The string-keyed-jdbc-store element specifies the configuration for a string based keyed cache JDBC store.
- The
datasourceparameter defines the name of a JNDI for the datasource. - The
passivationparameter determines whether entries in the cache are passivated (true) or if the cache store retains a copy of the contents in memory (false). - The
preloadparameter specifies whether to load entries into the cache during start up. Valid values for this parameter aretrueandfalse. - The
purgeparameter specifies whether or not the cache store is purged when it is started. Valid values for this parameter aretrueandfalse. - The
sharedparameter is used when multiple cache instances share a cache store. This parameter can be set to prevent multiple cache instances writing the same modification multiple times. Valid values for this parameter areENABLEDandDISABLED. - The
singletonparameter enables a singleton store that is used if a cluster interacts with the underlying store.
The property element contains information about properties related to the cache store.
- The
nameparameter specifies the name of the cache store. - The value ${database.type} must be replaced by a valid database type value, such as
DB2_390,SQL_SERVER,MYSQL,ORACLE,POSTGRESorSYBASE.
The string-keyed-table element specifies information about the database table used to store string based cache entries.
- The
prefixparameter specifies a prefix string for the database table name.
The id-column element specifies information about a database column that holds cache entry IDs.
- The
nameparameter specifies the name of the database column. - The
typeparameter specifies the type of the database column.
The data-column element contains information about a database column that holds cache entry data.
- The
nameparameter specifies the name of the database column. - The
typeparameter specifies the type of the database column.
The timestamp-column element specifies information about the database column that holds cache entry timestamps.
- The
nameparameter specifies the name of the database column. - The
typeparameter specifies the type of the database column.