public class Jsr107Configuration extends java.lang.Object implements ServiceCreationConfiguration<Jsr107Service,java.lang.Void>
ServiceCreationConfiguration
for default Jsr107Service
implementation.Constructor and Description |
---|
Jsr107Configuration(java.lang.String defaultTemplate,
java.util.Map<java.lang.String,java.lang.String> templates,
boolean jsr107CompliantAtomics,
ConfigurationElementState enableManagementAll,
ConfigurationElementState enableStatisticsAll)
Creates a new configuration with the provided parameters.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDefaultTemplate()
Returns the default template, or
null if not configured. |
java.lang.Class<Jsr107Service> |
getServiceType()
Indicates which service consumes this configuration at creation.
|
java.util.Map<java.lang.String,java.lang.String> |
getTemplates()
Returns the cache alias to template name map.
|
ConfigurationElementState |
isEnableManagementAll()
Indicates if all created caches should have management enabled.
|
ConfigurationElementState |
isEnableStatisticsAll()
Indicates if all created caches should have statistics enabled.
|
boolean |
isJsr107CompliantAtomics()
Indicates loader writer behaviour in atomic methods.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
build, compatibleWith, derive
public Jsr107Configuration(java.lang.String defaultTemplate, java.util.Map<java.lang.String,java.lang.String> templates, boolean jsr107CompliantAtomics, ConfigurationElementState enableManagementAll, ConfigurationElementState enableStatisticsAll)
defaultTemplate
- the default templatetemplates
- cache alias to template name mapjsr107CompliantAtomics
- behaviour of loader writer in atomic operationsenableManagementAll
- enable management JMXenableStatisticsAll
- enable statistics JMXpublic java.lang.String getDefaultTemplate()
null
if not configured.null
public java.util.Map<java.lang.String,java.lang.String> getTemplates()
public boolean isJsr107CompliantAtomics()
If true
then loader writer will NOT be used in atomic methods, if false
it will be.
true
or false
depending on configurationpublic java.lang.Class<Jsr107Service> getServiceType()
getServiceType
in interface ServiceCreationConfiguration<Jsr107Service,java.lang.Void>
public ConfigurationElementState isEnableManagementAll()
true
to enable management on all caches, false
otherwisepublic ConfigurationElementState isEnableStatisticsAll()
true
to enable management on all caches, false
otherwise