Class StoreAsBinaryConfiguration

  • All Implemented Interfaces:
    org.infinispan.commons.configuration.attributes.Matchable<StoreAsBinaryConfiguration>

    @Deprecated
    public class StoreAsBinaryConfiguration
    extends Object
    implements org.infinispan.commons.configuration.attributes.Matchable<StoreAsBinaryConfiguration>
    Deprecated.
    Controls 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 Detail

      • ENABLED

        public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> ENABLED
        Deprecated.
      • STORE_KEYS_AS_BINARY

        public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> STORE_KEYS_AS_BINARY
        Deprecated.
      • STORE_VALUES_AS_BINARY

        public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> STORE_VALUES_AS_BINARY
        Deprecated.
    • Method Detail

      • storeKeysAsBinary

        @Deprecated
        public boolean storeKeysAsBinary()
        Deprecated.
        when store as binary is enabled, keys are always stored as binary
        Enables storing keys as binary.
      • storeValuesAsBinary

        @Deprecated
        public boolean storeValuesAsBinary()
        Deprecated.
        when store as binary is enabled, values are always stored as binary
        Enables storing values as binary.
      • defensive

        @Deprecated
        public boolean defensive()
        Deprecated.
        Store as binary configuration is always defensive now.
        Enables defensive copies.
      • attributes

        public org.infinispan.commons.configuration.attributes.AttributeSet attributes()
        Deprecated.
      • equals

        public boolean equals​(Object obj)
        Deprecated.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class Object