public final class AtomObservation
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AtomObservation.AtomObservationUpdateType
Describes the type of observation including whether the update is "soft", or a weakly
supported atom which could possibly be deleted soon
|
static class |
AtomObservation.Type |
Modifier and Type | Method and Description |
---|---|
static AtomObservation |
deleted(Atom atom) |
Atom |
getAtom() |
long |
getReceivedTimestamp() |
AtomObservation.Type |
getType() |
AtomObservation.AtomObservationUpdateType |
getUpdateType() |
boolean |
hasAtom() |
static AtomObservation |
head() |
boolean |
isHead() |
boolean |
isStore() |
static AtomObservation |
ofEvent(AtomEvent atomEvent) |
static AtomObservation |
softDeleted(Atom atom) |
static AtomObservation |
softStored(Atom atom)
An atom stored observation marked as soft, meaning that it has been confirmed
to being stored by a server via a submission but is not part of the normal server fetch
atom flow and so must be handled as "soft state", state which to the clients knowledge
is stored but can easily be replaced by "harder" state.
|
static AtomObservation |
stored(Atom atom) |
java.lang.String |
toString() |
public Atom getAtom()
public AtomObservation.Type getType()
public boolean hasAtom()
public boolean isStore()
public boolean isHead()
public long getReceivedTimestamp()
public static AtomObservation ofEvent(AtomEvent atomEvent)
public static AtomObservation softStored(Atom atom)
atom
- the atom which is soft storedpublic static AtomObservation softDeleted(Atom atom)
public static AtomObservation stored(Atom atom)
public AtomObservation.AtomObservationUpdateType getUpdateType()
public static AtomObservation deleted(Atom atom)
public static AtomObservation head()
public java.lang.String toString()
toString
in class java.lang.Object