in order to have atomic data operations in my Firebase Android applications, I'm using the
updateChildren(Map<String, Object> update)
setValue(Object value, Object priority)
If you're looking to include a priority in a call to
updateChildren, you can do so by having a key that ends in
In general though, there is no reason to still use priorities. See What does priority mean in Firebase?