【发布时间】:2020-02-26 21:35:24
【问题描述】:
官方文档没有显示 SetValue() 和 SetValueAsync() 之间有任何有意义的区别:
1. void setValue(Object value, DatabaseReference.CompletionListener listener)
Description: Set the data at this location to the given value.
2. ApiFuture<Void> setValueAsync(Object value)
Description: Set the data at this location to the given value.
使用“异步”方法的含义是什么?
“ApiFuture”是什么意思?
我打算使用这些方法来保存一个字符串。该字符串与一本书的页面一样大。推荐的实现方法是什么?
【问题讨论】:
标签: java firebase firebase-realtime-database firebase-admin