Class TakeOfflineConfigurationBuilder
java.lang.Object
org.infinispan.configuration.cache.TakeOfflineConfigurationBuilder
- All Implemented Interfaces:
Builder<TakeOfflineConfiguration>
,ConfigurationChildBuilder
public class TakeOfflineConfigurationBuilder
extends Object
implements Builder<TakeOfflineConfiguration>
- Since:
- 5.2
- Author:
- Mircea Markus
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTakeOfflineConfigurationBuilder
(ConfigurationBuilder builder, BackupConfigurationBuilder backupConfigurationBuilder) -
Method Summary
Modifier and TypeMethodDescriptionafterFailures
(int afterFailures) The number of consecutive failed request operations after which this site should be taken offline.backup()
build()
create()
Create the configuration beanDeprecated, for removal: This API element is subject to removal in a future version.Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptorsencoding()
protected ConfigurationBuilder
indexing()
locking()
memory()
minTimeToWait
(long minTimeToWait) The minimal number of milliseconds to wait before taking this site offline.query()
read
(TakeOfflineConfiguration template, Combine combine) Reads the configuration from an already created configuration bean into this builder.security()
boolean
simpleCache
(boolean simpleCache) sites()
template
(boolean template) unsafe()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.infinispan.configuration.cache.ConfigurationChildBuilder
jmxStatistics, validate
-
Field Details
-
attributes
-
builder
-
-
Constructor Details
-
TakeOfflineConfigurationBuilder
public TakeOfflineConfigurationBuilder(ConfigurationBuilder builder, BackupConfigurationBuilder backupConfigurationBuilder)
-
-
Method Details
-
attributes
- Specified by:
attributes
in interfaceBuilder<TakeOfflineConfiguration>
-
minTimeToWait
The minimal number of milliseconds to wait before taking this site offline. It defaults to 0 (zero).A zero or negative value will disable any waiting time and use only
afterFailures(int)
.The switch to offline status happens after a failed request (times-out or network failure) and
minTimeToWait
is already elapsed.When a request fails (after a successful request) the timer is set and it is stopped and reset after a successful request.
Check the Infinispan Cross-Site documentation for more information about
minTimeToWait(long)
andafterFailures(int)
. -
afterFailures
The number of consecutive failed request operations after which this site should be taken offline. It default to 0 (zero).A zero or negative value will ignore the number of failures and use only
minTimeToWait(long)
.Check the Infinispan Cross-Site documentation for more information about
minTimeToWait(long)
andafterFailures(int)
. -
backup
-
create
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<TakeOfflineConfiguration>
- Returns:
-
read
Description copied from interface:Builder
Reads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
read
in interfaceBuilder<TakeOfflineConfiguration>
- Parameters:
template
- the configuration from which to "clone" this config if needed.combine
- the way attributes and children of this instance and the template should be combined.
-
template
- Specified by:
template
in interfaceConfigurationChildBuilder
-
simpleCache
- Specified by:
simpleCache
in interfaceConfigurationChildBuilder
-
simpleCache
public boolean simpleCache()- Specified by:
simpleCache
in interfaceConfigurationChildBuilder
-
clustering
- Specified by:
clustering
in interfaceConfigurationChildBuilder
-
customInterceptors
Deprecated, for removal: This API element is subject to removal in a future version.Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptors- Specified by:
customInterceptors
in interfaceConfigurationChildBuilder
-
encoding
- Specified by:
encoding
in interfaceConfigurationChildBuilder
-
expiration
- Specified by:
expiration
in interfaceConfigurationChildBuilder
-
query
- Specified by:
query
in interfaceConfigurationChildBuilder
-
indexing
- Specified by:
indexing
in interfaceConfigurationChildBuilder
-
invocationBatching
- Specified by:
invocationBatching
in interfaceConfigurationChildBuilder
-
statistics
- Specified by:
statistics
in interfaceConfigurationChildBuilder
-
persistence
- Specified by:
persistence
in interfaceConfigurationChildBuilder
-
locking
- Specified by:
locking
in interfaceConfigurationChildBuilder
-
security
- Specified by:
security
in interfaceConfigurationChildBuilder
-
transaction
- Specified by:
transaction
in interfaceConfigurationChildBuilder
-
unsafe
- Specified by:
unsafe
in interfaceConfigurationChildBuilder
-
sites
- Specified by:
sites
in interfaceConfigurationChildBuilder
-
memory
- Specified by:
memory
in interfaceConfigurationChildBuilder
-
getBuilder
-
build
- Specified by:
build
in interfaceConfigurationChildBuilder
-