public class Backup extends Object
| Modifier and Type | Method and Description |
|---|---|
Integer |
afterFailures()
Indicates the number of failures after which this backup site should go offline.
|
Backup |
afterFailures(Integer value)
Indicates the number of failures after which this backup site should go offline.
|
Boolean |
enabled()
Indicates whether or not this backup site is enabled.
|
Backup |
enabled(Boolean value)
Indicates whether or not this backup site is enabled.
|
String |
failurePolicy()
The policy to follow when connectivity to the backup site fails.
|
Backup |
failurePolicy(String value)
The policy to follow when connectivity to the backup site fails.
|
String |
getKey() |
Long |
minWait()
Indicates the minimum time (in milliseconds) to wait after the max number of failures is reached, after which this backup site should go offline.
|
Backup |
minWait(Long value)
Indicates the minimum time (in milliseconds) to wait after the max number of failures is reached, after which this backup site should go offline.
|
String |
strategy()
The backup strategy for this cache
|
Backup |
strategy(String value)
The backup strategy for this cache
|
Long |
timeout()
The timeout for replicating to the backup site.
|
Backup |
timeout(Long value)
The timeout for replicating to the backup site.
|
public Backup(String key)
public String getKey()
public Integer afterFailures()
public Backup afterFailures(Integer value)
public Boolean enabled()
public String failurePolicy()
public Backup failurePolicy(String value)
public Long minWait()
public Backup minWait(Long value)
public String strategy()
public Long timeout()
Copyright © 2015 JBoss by Red Hat. All rights reserved.