Class StoreAsBinaryConfiguration

  • All Implemented Interfaces:
    Matchable<StoreAsBinaryConfiguration>

    @Deprecated
    public class StoreAsBinaryConfiguration
    extends java.lang.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
    • Field Detail

      • 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

      • 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.
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object
      • equals

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

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