Enum GridClientCacheFlag

    • Enum Constant Detail

      • SKIP_STORE

        public static final GridClientCacheFlag SKIP_STORE
        Skips store, i.e. no read-through and no write-through behavior.
      • KEEP_BINARIES

        public static final GridClientCacheFlag KEEP_BINARIES
        Disable deserialization of binary objects on get operations. If set and binary marshaller is used, GridClientData.get(Object) and GridClientData.getAll(Collection) methods will return instances of BinaryObject class instead of user objects. Use this flag if you don't have corresponding class on your client of if you want to get access to some individual fields, but do not want to fully deserialize the object.
    • Method Detail

      • values

        public static GridClientCacheFlag[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (GridClientCacheFlag c : GridClientCacheFlag.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static GridClientCacheFlag valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • fromOrdinal

        public static GridClientCacheFlag fromOrdinal​(int ord)
        Efficiently gets enumerated value from its ordinal.
        Parameters:
        ord - Ordinal value.
        Returns:
        Enumerated value or null if ordinal out of range.
      • encodeCacheFlags

        public static int encodeCacheFlags​(Collection<GridClientCacheFlag> flagSet)
        Encodes cache flags to bit map.
        Parameters:
        flagSet - Set of flags to be encoded.
        Returns:
        Bit map.
      • parseCacheFlags

        public static Set<GridClientCacheFlag> parseCacheFlags​(int cacheFlagsBits)
        Retrieves cache flags from corresponding bits.
        Parameters:
        cacheFlagsBits - Integer representation of cache flags bit set.
        Returns:
        Cache flags.