Enum OperationMode

    • Enum Constant Detail

      • CLOUD_FIRST

        public static final OperationMode CLOUD_FIRST
        Data is stored into and retrieved from Gluon CloudLink as the primary location, while a local copy is kept in sync. This ensures that the latest version of the data is always available in the case where no connection can be made with Gluon CloudLink. After the connection is reestablished, any pending changes on local data are first synchronized with Gluon CloudLink. Then the pending changes on the data in Gluon CloudLink will be brought in sync with the local data.
      • CLOUD_ONLY

        public static final OperationMode CLOUD_ONLY
        Data will only be stored into and retrieved from Gluon CloudLink. In the case where no connection to Gluon CloudLink is available, any changes to the data will not be persisted until the connection is reestablished. Any pending changes are then synchronized with Gluon CloudLink. If the application should exit before the connection was reestablished, any pending changes will be permanently lost.
      • LOCAL_ONLY

        public static final OperationMode LOCAL_ONLY
        Data will only be stored into and retrieved from the private storage location of the device.
    • Method Detail

      • values

        public static OperationMode[] 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 (OperationMode c : OperationMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static OperationMode 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