public class UnsafeConfigurationBuilder extends AbstractConfigurationChildBuilder
Modifier and Type | Field and Description |
---|---|
private boolean |
unreliableReturnValues |
Modifier | Constructor and Description |
---|---|
protected |
UnsafeConfigurationBuilder(ConfigurationBuilder builder) |
Modifier and Type | Method and Description |
---|---|
UnsafeConfiguration |
create() |
UnsafeConfigurationBuilder |
read(UnsafeConfiguration template) |
java.lang.String |
toString() |
UnsafeConfigurationBuilder |
unreliableReturnValues(boolean allowUnreliableReturnValues)
Specify whether Infinispan is allowed to disregard the
Map contract when providing return values for
org.infinispan.Cache#put(Object, Object) and org.infinispan.Cache#remove(Object) methods. |
void |
validate() |
build, clustering, compatibility, customInterceptors, dataContainer, deadlockDetection, eviction, expiration, getBuilder, indexing, invocationBatching, jmxStatistics, locking, persistence, sites, storeAsBinary, transaction, unsafe, versioning
protected UnsafeConfigurationBuilder(ConfigurationBuilder builder)
public UnsafeConfigurationBuilder unreliableReturnValues(boolean allowUnreliableReturnValues)
Map
contract when providing return values for
org.infinispan.Cache#put(Object, Object)
and org.infinispan.Cache#remove(Object)
methods.
Providing return values can be expensive as they may entail a read from disk or across a network, and if the usage
of these methods never make use of these return values, allowing unreliable return values helps Infinispan
optimize away these remote calls or disk reads.
allowUnreliableReturnValues
- if true, return values for the methods described above should not be relied on.public void validate()
public UnsafeConfiguration create()
public UnsafeConfigurationBuilder read(UnsafeConfiguration template)
public java.lang.String toString()
toString
in class java.lang.Object