Class StoreAsBinaryConfiguration

  • All Implemented Interfaces:
    Matchable<StoreAsBinaryConfiguration>

    @Deprecated
    public class StoreAsBinaryConfiguration
    extends Object
    implements 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
    • 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.
      • equals

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

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