| Modifier and Type | Class and Description |
|---|---|
| private static enum | Configuration.DynamicProperty
Enum of all properties that can change once the Configuration is being used by a CacheManager |
| public static enum | Configuration.Monitoring
Represents whether monitoring should be enabled or not. |
| public class | Configuration.RuntimeCfg
Runtime configuration as being used by the CacheManager |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private FactoryConfiguration | |
| private String | |
| private final List | |
| private final List | |
| private volatile Configuration. | |
| private volatile ClassLoader | |
| private ConfigurationSource | |
| public static final boolean | DEFAULT_DYNAMIC_CONFIG
Default value for dynamicConfig |
| public static final long | DEFAULT_MAX_BYTES_OFF_HEAP
Default value for maxBytesLocalOffHeap when not explicitly set |
| public static final long | DEFAULT_MAX_BYTES_ON_DISK
Default value for maxBytesLocalDisk when not explicitly set |
| public static final long | DEFAULT_MAX_BYTES_ON_HEAP
Default value for maxBytesLocalHeap when not explicitly set |
| public static final Configuration. | DEFAULT_MONITORING
Default value for monitoring |
| public static final SizeOfPolicyConfiguration | DEFAULT_SIZEOF_POLICY_CONFIGURATION
Default sizeOfPolicy configuration |
| public static final FactoryConfiguration | DEFAULT_TRANSACTION_MANAGER_LOOKUP_CONFIG
Default transactionManagerLookupConfiguration |
| public static final int | DEFAULT_TRANSACTION_TIMEOUT
Default value for defaultTransactionTimeoutInSeconds |
| private CacheConfiguration | |
| private int | |
| private DiskStoreConfiguration | |
| private boolean | |
| private static final int | |
| private static final Logger | |
| private ManagementRESTServiceConfiguration | |
| private Long | |
| private String | |
| private Long | |
| private String | |
| private Long | |
| private String | |
| private Configuration. | |
| private final List | |
| private SizeOfPolicyConfiguration | |
| private TerracottaClientConfiguration | |
| private FactoryConfiguration |
| Access | Constructor and Description |
|---|---|
| public | Configuration()
Empty constructor, which is used by |
| Modifier and Type | Method and Description |
|---|---|
| public final void | addCache(CacheConfiguration cacheConfiguration)
Allows BeanHandler to add Cache Configurations to the configuration. |
| pack-priv void | addCache(CacheConfiguration
the CacheConfiguration cacheConfiguration, final boolean true if added regularly, validation dyn config constraints, false if added through the cache being added strict)Maintains the known Cache's configuration map in this Configuration |
| public final void | addCacheManagerEventListenerFactory(FactoryConfiguration<T extends FactoryConfiguration> cacheManagerEventListenerFactoryConfiguration)
Allows BeanHandler to add the CacheManagerEventListener to the configuration. |
| public final void | addCacheManagerPeerListenerFactory(FactoryConfiguration<T extends FactoryConfiguration> factory)
Adds a CacheManagerPeerListener through FactoryConfiguration. |
| public final void | addCacheManagerPeerProviderFactory(FactoryConfiguration<T extends FactoryConfiguration> factory)
Adds a CacheManagerPeerProvider through FactoryConfiguration. |
| public final void | addDefaultCache(CacheConfiguration defaultCacheConfiguration)
Allows BeanHandler to add a default configuration to the configuration. |
| public final void | addDiskStore(DiskStoreConfiguration diskStoreConfigurationParameter)
Allows BeanHandler to add disk store location to the configuration. |
| public final void | addManagementRESTService(ManagementRESTServiceConfiguration managementRESTServiceConfiguration)
Allows BeanHandler to add a ManagementRESTService configuration to the configuration |
| public boolean | Returns: true if added, false otherwisethe listener instance listener)Adds a |
| public final void | addSizeOfPolicy(SizeOfPolicyConfiguration
the SizeOfPolicy Configuration sizeOfPolicy)Sets the default SizeOfPolicyConfiguration for this cache manager. |
| public final void | addTerracottaConfig(TerracottaClientConfiguration terracottaConfiguration)
Allows BeanHandler to add a Terracotta configuration to the configuration |
| public final void | addTransactionManagerLookup(FactoryConfiguration<T extends FactoryConfiguration> transactionManagerLookupParameter)
Allows BeanHandler to add transaction manager lookup to the configuration. |
| private void | |
| public final Configuration | Returns: this configuration instanceBuilder to add a new cache through its config |
| public final Configuration | Returns: this configuration instanceBuilder to set the event lister through a factory, only one of these can be added and subsequent calls are ignored. |
| public final Configuration | Returns: this configuration instanceBuilder method to add a peer listener through a factory. |
| public final Configuration | Returns: this configuration instanceBuilder method to add a peer provider through a factory. |
| private boolean | |
| public void | |
| public final Configuration | Returns: this configuration instanceBuilder method to set the default cache configuration, this can only be used once. |
| public final Configuration | Returns: this configuration instancethe default transaction timeout in seconds defaultTransactionTimeoutInSeconds)Builder to set the default transaction timeout. |
| public final Configuration | Returns: this configuration instancethe disk store configuration to use diskStoreConfigurationParameter)Builder to add a disk store to the cache manager, only one disk store can be added. |
| public final Configuration | Returns: this configuration instancetrue if dynamic config should be enabled; or false otherwise.Builder to set the dynamic config capability |
| private <T> void | |
| pack-priv static Set | Returns: the Set of all active cachesThe cacheManager cacheManager)Returns all active caches managed by the Manager |
| public final Map | |
| public final Set | |
| public final FactoryConfiguration | getCacheManagerEventListenerFactoryConfiguration()
Gets the CacheManagerEventListener factory configuration. |
| public final List | getCacheManagerPeerListenerFactoryConfigurations()
Gets the CacheManagerPeerListener factory configuration. |
| public final List | getCacheManagerPeerProviderFactoryConfiguration()
Gets the CacheManagerPeerProvider factory configuration. |
| public ClassLoader | |
| public final ConfigurationSource | |
| public final CacheConfiguration | |
| private static FactoryConfiguration | |
| public final int | Returns: default transaction timeout in secondsGet default transaction timeout |
| public final DiskStoreConfiguration | |
| public final boolean | |
| public final ManagementRESTServiceConfiguration | |
| public long | Returns: amount in bytesMaximum amount of bytes the CacheManager will use on the Disk Tier. |
| public String | |
| public long | Returns: amount of bytes, 0 is unboundMaximum amount of bytes the CacheManager will use on the heap |
| public String | |
| public long | Returns: amount in bytesMaximum amount of bytes the CacheManager will use on the OffHeap Tier. |
| public String | |
| public final Configuration. | |
| public final String | |
| private long | |
| public final SizeOfPolicyConfiguration | |
| public final TerracottaClientConfiguration | |
| public long | |
| public final FactoryConfiguration | |
| public final boolean | |
| public boolean | Returns: true if set by user, false otherwiseChecks whether the user explicitly set the maxBytesOnDisk |
| public boolean | Returns: true if set by user, false otherwiseChecks whether the user explicitly set the maxBytesOnHeap |
| public boolean | Returns: true if set by user, false otherwiseChecks whether the user explicitly set the maxBytesOffHeat |
| private boolean | |
| public final Configuration | Returns: this configuration instanceBuilder method to REST management capabilities to the cache manager through a dedicated configuration, this can only be used once. |
| public Configuration | Returns: thisthe amount of unit amount, final MemoryUnit the actual unit memoryUnit)Sets the maxOnDisk size |
| public Configuration | Returns: thisthe amount of unit amount, final MemoryUnit the actual unit memoryUnit)Sets the maxOnHeap size for the cache being configured |
| public Configuration | Returns: thisthe amount of unit amount, final MemoryUnit the actual unit memoryUnit)Sets the maximum size for the OffHeap tier for all the caches this CacheManagers holds. |
| public final Configuration | Returns: this configuration instancean non-null instance of monitoringMonitoringBuilder to set the monitoring approach |
| public final Configuration | |
| private int | |
| public boolean | Returns: true if removed, false otherwisethe listener to be removed listener)Removes a |
| public void | setClassLoader(ClassLoader
the classloader to use loader)Set the classloader for the cache manager (and it's associated caches) to use when creating application objects (eg. |
| public final void | |
| public final void | setDefaultTransactionTimeoutInSeconds(int defaultTransactionTimeoutInSeconds)
Allows BeanHandler to set the default transaction timeout. |
| public final void | |
| public void | setMaxBytesLocalDisk(final String
String representation of the size. maxBytesOnDisk)Sets maximum amount of bytes the CacheManager will use on the Disk Tier. |
| public void | setMaxBytesLocalDisk(final Long
max bytes on disk in bytes. Needs be be greater than 0 maxBytesOnDisk)Sets maximum amount of bytes the CacheManager will use on the Disk Tier. |
| public void | setMaxBytesLocalHeap(final String
String representation of the size. maxBytesOnHeap)Sets maximum amount of bytes the CacheManager will use on the Disk Tier. |
| public void | setMaxBytesLocalHeap(final Long
amount of bytes maxBytesOnHeap)Sets the maximum amount of bytes the cache manager being configured will use on the OnHeap tier |
| public void | setMaxBytesLocalOffHeap(final String
String representation of the size. maxBytesOffHeap)Sets maximum amount of bytes the CacheManager will use on the OffHeap Tier. |
| public void | setMaxBytesLocalOffHeap(final Long
max bytes on disk in bytes. Needs be be greater than 0 maxBytesOffHeap)Sets maximum amount of bytes the CacheManager will use on the OffHeap Tier. |
| public final void | |
| public final void | |
| public final void | setSource(ConfigurationSource
an informative description of the source, preferably
including the resource name and location. configurationSource)Sets the configuration source. |
| public final void | |
| public Configuration. | setupFor(final CacheManager
the CacheManager instance being configured cacheManager, final String fallbackName)Freezes part of the configuration that need to be, and runs validation checks on the Configuration. |
| public final Configuration | Returns: this configuration instancethe SizeOfPolicy Configuration sizeOfPolicyConfiguration)Builder to set the default SizeOfPolicyConfiguration for this cache manager. |
| public final Configuration | Returns: this configuration instanceBuilder to set the configuration source. |
| public final Configuration | Returns: this configuration instanceBuilder method to Terracotta capabilities to the cache manager through a dedicated configuration, this can only be used once. |
| public final Configuration | Returns: this configuration instancethe transaction manager lookup class to use transactionManagerLookupParameter)Builder to add a transaction manager lookup class to the cache manager, only one of these can be added. |
| public final Configuration | Returns: this configuration instancetrue if the update check should be turned on; or false otherwise
Deprecated
Builder to set the state of the automated update check.
|
| public Collection | |
| private void |