Enum SyncFlag

  • All Implemented Interfaces:
    Serializable, Comparable<SyncFlag>

    public enum SyncFlag
    extends Enum<SyncFlag>
    A SyncFlag defines how changes to objects and lists are reflected between the remote copies on Gluon CloudLink and the local copies in the runtime of the client application. READ flags make sure that all changes that are done on the copies on Gluon CloudLink will be made visible to the local copy on the client. WRITE flags make sure that all changes that are done on the local copy on the client are sent back to the remote copy on Gluon CloudLink. Note that READ flags are only useful when they are used in conjunction with the CLOUD_FIRST or CLOUD_ONLY operation modes.
    • Enum Constant Detail

      • OBJECT_READ_THROUGH

        public static final SyncFlag OBJECT_READ_THROUGH
        Changes on remote objects and objects in remote lists on Gluon CloudLink are reflected to the local copy of these objects.
      • OBJECT_WRITE_THROUGH

        public static final SyncFlag OBJECT_WRITE_THROUGH
        Changes on local objects and objects in local lists are reflected to the remote copy of these objects on Gluon CloudLink.
      • LIST_READ_THROUGH

        public static final SyncFlag LIST_READ_THROUGH
        Changes in a remote list (adding and removing of objects) on Gluon CloudLink are reflected to the local copy of that list.
      • LIST_WRITE_THROUGH

        public static final SyncFlag LIST_WRITE_THROUGH
        Changes in a local list (adding and removing of objects) are reflected to the remote copy of that list on Gluon CloudLink.
    • Method Detail

      • values

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

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