Class StoreAsBinaryConfiguration
- java.lang.Object
-
- org.infinispan.configuration.cache.StoreAsBinaryConfiguration
-
- All Implemented Interfaces:
Matchable<StoreAsBinaryConfiguration>
@Deprecated public class StoreAsBinaryConfiguration extends java.lang.Object implements Matchable<StoreAsBinaryConfiguration>
Deprecated.UseMemoryConfiguration
insteadControls whether when stored in memory, keys and values are stored as references to their original objects, or in a serialized, binary format. There are benefits to both approaches, but often if used in a clustered mode, storing objects as binary means that the cost of serialization happens early on, and can be amortized. Further, deserialization costs are incurred lazily which improves throughput. It is possible to control this on a fine-grained basis: you can choose to just store keys or values as binary, or both.- See Also:
StoreAsBinaryConfigurationBuilder
-
-
Field Summary
Fields Modifier and Type Field Description static AttributeDefinition<java.lang.Boolean>
ENABLED
Deprecated.static AttributeDefinition<java.lang.Boolean>
STORE_KEYS_AS_BINARY
Deprecated.static AttributeDefinition<java.lang.Boolean>
STORE_VALUES_AS_BINARY
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AttributeSet
attributes()
Deprecated.boolean
defensive()
Deprecated.Store as binary configuration is always defensive now.boolean
enabled()
Deprecated.useMemoryConfiguration.storageType()
insteadStoreAsBinaryConfiguration
enabled(boolean enabled)
Deprecated.boolean
equals(java.lang.Object obj)
Deprecated.int
hashCode()
Deprecated.boolean
storeKeysAsBinary()
Deprecated.when store as binary is enabled, keys are always stored as binaryboolean
storeValuesAsBinary()
Deprecated.when store as binary is enabled, values are always stored as binaryjava.lang.String
toString()
Deprecated.
-
-
-
Field Detail
-
ENABLED
public static final AttributeDefinition<java.lang.Boolean> ENABLED
Deprecated.
-
STORE_KEYS_AS_BINARY
public static final AttributeDefinition<java.lang.Boolean> STORE_KEYS_AS_BINARY
Deprecated.
-
STORE_VALUES_AS_BINARY
public static final AttributeDefinition<java.lang.Boolean> STORE_VALUES_AS_BINARY
Deprecated.
-
-
Method Detail
-
enabled
@Deprecated public boolean enabled()
Deprecated.useMemoryConfiguration.storageType()
insteadEnables storing both keys and values as binary.
-
enabled
@Deprecated public StoreAsBinaryConfiguration enabled(boolean enabled)
Deprecated.
-
storeKeysAsBinary
@Deprecated public boolean storeKeysAsBinary()
Deprecated.when store as binary is enabled, keys are always stored as binaryEnables storing keys as binary.
-
storeValuesAsBinary
@Deprecated public boolean storeValuesAsBinary()
Deprecated.when store as binary is enabled, values are always stored as binaryEnables storing values as binary.
-
defensive
@Deprecated public boolean defensive()
Deprecated.Store as binary configuration is always defensive now.Enables defensive copies.
-
attributes
public AttributeSet attributes()
Deprecated.
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Deprecated.- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCode
in classjava.lang.Object
-
-