public static enum CharmObservable.State extends java.lang.Enum<CharmObservable.State>
Enum Constant and Description |
---|
DELETED
A CharmObservable object in the
DELETED state signals that it was
successfully removed after executing the delete operation . |
FAILED
A CharmObservable object in the
FAILED state signals that the last
executed synchronization operation failed. |
INITIALIZED
The state of a CharmObservable object becomes
INITIALIZED when the
synchronization process that created the object has completed successfully. |
READY
This is the initial state of a new CharmObservable object.
|
RUNNING
A CharmObservable object in the
RUNNING state means that a
synchronization operation is currently in progress. |
SUCCEEDED
A CharmObservable object in the
SUCCEEDED state signals that the last
executed synchronization operation was completed successfully. |
Modifier and Type | Method and Description |
---|---|
static CharmObservable.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CharmObservable.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CharmObservable.State READY
READY
state until the first synchronization operation is started.public static final CharmObservable.State RUNNING
RUNNING
state means that a
synchronization operation is currently in progress.public static final CharmObservable.State FAILED
FAILED
state signals that the last
executed synchronization operation failed. You can check the exception
to find out more about the reason for the failure.public static final CharmObservable.State SUCCEEDED
SUCCEEDED
state signals that the last
executed synchronization operation was completed successfully.public static final CharmObservable.State INITIALIZED
INITIALIZED
when the
synchronization process that created the object has completed successfully. The state
will immediately be set to SUCCEEDED
after this state.
In case of a CharmObservableList
this means that the retrieval operation
has finished and all items that belong to the list are now available in that list.
In case of a CharmObservableObject
this means that the retrieval or storage
operation has finished and that the object that is contained within this observable
object is now available.
public static final CharmObservable.State DELETED
DELETED
state signals that it was
successfully removed after executing the delete operation
.
The DELETED
state is only applicable to CharmObservableObject
because
a CharmObservableList
can not be deleted.public static CharmObservable.State[] values()
for (CharmObservable.State c : CharmObservable.State.values()) System.out.println(c);
public static CharmObservable.State 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