public enum SyncMethod extends java.lang.Enum<SyncMethod>
Enum Constant and Description |
---|
AUTO
The AUTO method is a shorthand notation for AUTO_READ and AUTO_WRITE.
|
AUTO_READ
Properties annotated with AUTO_READ will automatically receive all
changes that occur to the value of the property on Gluon Cloud.
|
AUTO_WRITE
Properties annotated with AUTO_WRITE will automatically push all changes
that occur to the value of the property to Gluon Cloud.
|
MANUAL
The MANUAL method is a shorthand notation for MANUAL_READ and
MANUAL_WRITE.
|
MANUAL_READ
Properties annotated with AUTO_READ will only receive the value that is
stored on Gluon Cloud when a sync operation is started.
|
MANUAL_WRITE
Properties annotated with AUTO_READ will only push their current value to
Gluon Cloud when a sync operation is started.
|
NONE
Properties annotated with method NONE will never be synchronized with
Gluon Cloud.
|
Modifier and Type | Method and Description |
---|---|
static SyncMethod |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SyncMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SyncMethod NONE
public static final SyncMethod AUTO
public static final SyncMethod AUTO_READ
public static final SyncMethod AUTO_WRITE
public static final SyncMethod MANUAL
public static final SyncMethod MANUAL_READ
public static final SyncMethod MANUAL_WRITE
public static SyncMethod[] values()
for (SyncMethod c : SyncMethod.values()) System.out.println(c);
public static SyncMethod valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null