public interface AtomStore
Modifier and Type | Method and Description |
---|---|
io.reactivex.Observable<AtomObservation> |
getAtomObservations(RadixAddress address)
Retrieve a never ending observable of atom observations (STORED and DELETED)
which are then processed by the local store.
|
java.util.List<ParticleGroup> |
getStagedAndClear(java.lang.String uuid)
Retrieves all staged particle groups and clears the staging area
for the given uuid.
|
java.util.stream.Stream<Atom> |
getStoredAtoms(RadixAddress address)
Retrieve the current set of validated atoms at a given shardable
|
java.util.stream.Stream<Particle> |
getUpParticles(RadixAddress address,
java.lang.String uuid)
Retrieve the current set of validated up particles at a given shardable.
|
io.reactivex.Observable<java.lang.Long> |
onSync(RadixAddress address)
Temporary interface for propagating when the current store
is synced with some node on a given address.
|
void |
stageParticleGroup(java.lang.String uuid,
ParticleGroup particleGroup)
Adds the particle group to the staging area for the given uuid
|
io.reactivex.Observable<java.lang.Long> onSync(RadixAddress address)
address
- The address to check for syncjava.util.stream.Stream<Atom> getStoredAtoms(RadixAddress address)
address
- the address to get the atoms underio.reactivex.Observable<AtomObservation> getAtomObservations(RadixAddress address)
address
- the address to get the updates fromjava.util.stream.Stream<Particle> getUpParticles(RadixAddress address, @Nullable java.lang.String uuid)
address
- the address to get the particles underuuid
- uuid of staged particles to includevoid stageParticleGroup(java.lang.String uuid, ParticleGroup particleGroup)
uuid
- the uuid to add the particle group toparticleGroup
- the particle group to add to staging areajava.util.List<ParticleGroup> getStagedAndClear(java.lang.String uuid)
uuid
- uuid to retrieve the staged particle groups for