public class MixedJDBCStore<T extends MixedJDBCStore<T>> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MixedJDBCStore.MixedJDBCStoreResources
Child mutators for MixedJDBCStore
|
Constructor and Description |
---|
MixedJDBCStore() |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
T |
behindWrite()
Configures a cache store as write-behind instead of write-through.
|
T |
behindWrite(BehindWrite value)
Configures a cache store as write-behind instead of write-through.
|
T |
behindWrite(BehindWriteConsumer consumer)
Configures a cache store as write-behind instead of write-through.
|
T |
behindWrite(BehindWriteSupplier supplier)
Configures a cache store as write-behind instead of write-through.
|
Map |
binaryKeyedTable()
Defines a table used to store cache entries whose keys cannot be
expressed as strings.
|
T |
binaryKeyedTable(Map value)
Defines a table used to store cache entries whose keys cannot be
expressed as strings.
|
T |
binaryKeyedTable(String key,
Object value)
Defines a table used to store cache entries whose keys cannot be
expressed as strings.
|
T |
binaryTable()
Defines a table used to store cache entries whose keys cannot be
expressed as strings.
|
T |
binaryTable(BinaryTable value)
Defines a table used to store cache entries whose keys cannot be
expressed as strings.
|
T |
binaryTable(BinaryTableConsumer consumer)
Defines a table used to store cache entries whose keys cannot be
expressed as strings.
|
T |
binaryTable(BinaryTableSupplier supplier)
Defines a table used to store cache entries whose keys cannot be
expressed as strings.
|
Long |
cacheLoaderLoads()
The number of cache loader node loads.
|
T |
cacheLoaderLoads(Long value)
The number of cache loader node loads.
|
Long |
cacheLoaderMisses()
The number of cache loader node misses.
|
T |
cacheLoaderMisses(Long value)
The number of cache loader node misses.
|
String |
datasource()
The jndi name of the data source used to connect to this store.
|
String |
dataSource()
References the data source used to connect to this store.
|
T |
datasource(String value)
The jndi name of the data source used to connect to this store.
|
T |
dataSource(String value)
References the data source used to connect to this store.
|
Dialect |
dialect()
The dialect of this datastore.
|
T |
dialect(Dialect value)
The dialect of this datastore.
|
Boolean |
fetchState()
If true, fetch persistent state when joining a cluster.
|
T |
fetchState(Boolean value)
If true, fetch persistent state when joining a cluster.
|
String |
getKey() |
Integer |
maxBatchSize()
The maximum size of a batch to be inserted/deleted from the store.
|
T |
maxBatchSize(Integer value)
The maximum size of a batch to be inserted/deleted from the store.
|
Boolean |
passivation()
If true, data is only written to the cache store when it is evicted from
memory, a phenomenon known as 'passivation'.
|
T |
passivation(Boolean value)
If true, data is only written to the cache store when it is evicted from
memory, a phenomenon known as 'passivation'.
|
Boolean |
preload()
If true, when the cache starts, data stored in the cache store will be
pre-loaded into memory.
|
T |
preload(Boolean value)
If true, when the cache starts, data stored in the cache store will be
pre-loaded into memory.
|
Map |
properties()
A list of cache store properties.
|
T |
properties(List<Property> value)
Add all Property objects to this subresource
|
T |
properties(Map value)
A list of cache store properties.
|
T |
property(Property value)
Add the Property object to the list of subresources
|
T |
property(PropertySupplier supplier)
Install a supplied Property object to the list of subresources
|
T |
property(String childKey)
Create and configure a Property object to the list of subresources
|
T |
property(String key,
Object value)
A list of cache store properties.
|
T |
property(String childKey,
PropertyConsumer consumer)
Create and configure a Property object to the list of subresources
|
Boolean |
purge()
If true, purges this cache store when it starts up.
|
T |
purge(Boolean value)
If true, purges this cache store when it starts up.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
Boolean |
shared()
This setting should be set to true when multiple cache instances share
the same cache store (e.g., multiple nodes in a cluster using a
JDBC-based CacheStore pointing to the same, shared database.) Setting
this to true avoids multiple cache instances writing the same
modification multiple times.
|
T |
shared(Boolean value)
This setting should be set to true when multiple cache instances share
the same cache store (e.g., multiple nodes in a cluster using a
JDBC-based CacheStore pointing to the same, shared database.) Setting
this to true avoids multiple cache instances writing the same
modification multiple times.
|
Boolean |
singleton()
If true, the singleton store cache store is enabled.
|
T |
singleton(Boolean value)
If true, the singleton store cache store is enabled.
|
Map |
stringKeyedTable()
Defines a table used to store persistent cache entries.
|
T |
stringKeyedTable(Map value)
Defines a table used to store persistent cache entries.
|
T |
stringKeyedTable(String key,
Object value)
Defines a table used to store persistent cache entries.
|
T |
stringTable()
Defines a table used to store cache entries whose keys can be expressed
as strings.
|
T |
stringTable(StringTable value)
Defines a table used to store cache entries whose keys can be expressed
as strings.
|
T |
stringTable(StringTableConsumer consumer)
Defines a table used to store cache entries whose keys can be expressed
as strings.
|
T |
stringTable(StringTableSupplier supplier)
Defines a table used to store cache entries whose keys can be expressed
as strings.
|
MixedJDBCStore.MixedJDBCStoreResources |
subresources() |
T |
throughWrite()
Configures a cache store as write-through.
|
T |
throughWrite(ThroughWrite value)
Configures a cache store as write-through.
|
T |
throughWrite(ThroughWriteConsumer consumer)
Configures a cache store as write-through.
|
T |
throughWrite(ThroughWriteSupplier supplier)
Configures a cache store as write-through.
|
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public MixedJDBCStore.MixedJDBCStoreResources subresources()
public T properties(List<Property> value)
value
- List of Property objects.public T property(Property value)
value
- The Property to addpublic T property(String childKey, PropertyConsumer consumer)
key
- The key for the Property resourceconfig
- The PropertyConsumer to usepublic T property(String childKey)
key
- The key for the Property resourcepublic T property(PropertySupplier supplier)
public T throughWrite(ThroughWrite value)
public T throughWrite(ThroughWriteConsumer consumer)
public T throughWrite()
public T throughWrite(ThroughWriteSupplier supplier)
public T behindWrite(BehindWrite value)
public T behindWrite(BehindWriteConsumer consumer)
public T behindWrite()
public T behindWrite(BehindWriteSupplier supplier)
public T stringTable(StringTable value)
public T stringTable(StringTableConsumer consumer)
public T stringTable()
public T stringTable(StringTableSupplier supplier)
public T binaryTable(BinaryTable value)
public T binaryTable(BinaryTableConsumer consumer)
public T binaryTable()
public T binaryTable(BinaryTableSupplier supplier)
public Map binaryKeyedTable()
public T binaryKeyedTable(Map value)
public T binaryKeyedTable(String key, Object value)
public Long cacheLoaderLoads()
public T cacheLoaderLoads(Long value)
public Long cacheLoaderMisses()
public T cacheLoaderMisses(Long value)
public String dataSource()
public T dataSource(String value)
public String datasource()
public T datasource(String value)
public Dialect dialect()
public Boolean fetchState()
public T fetchState(Boolean value)
public Integer maxBatchSize()
public T maxBatchSize(Integer value)
public Boolean passivation()
public T passivation(Boolean value)
public Boolean preload()
public T preload(Boolean value)
public Map properties()
public Boolean purge()
public Boolean shared()
public T shared(Boolean value)
public Boolean singleton()
public T singleton(Boolean value)
public Map stringKeyedTable()
public T stringKeyedTable(Map value)
Copyright © 2019 JBoss by Red Hat. All rights reserved.