AsyncClient

public final class AsyncClient implements FirebaseClient

A FirebaseClient which executes write operations asynchronously.

Read operations are considered less frequent and less costly, thus are executed synchronously.

Constructors

Link copied to clipboard
public void AsyncClient(FirebaseClient delegate, Executor executor)
Creates a new async client with the given delegate and the given executor.
public void AsyncClient(FirebaseClient delegate)
Creates a new async client with the given delegate.

Functions

Link copied to clipboard
public void create(NodePath nodePath, NodeValue value)
Writes the specified value to the Firebase database node.
Link copied to clipboard
public void delete(NodePath nodePath)
Deletes the node under the given path.
Link copied to clipboard
public Optional<NodeValue> fetchNode(NodePath nodePath)
Retrieves the value of the specified Firebase database node.
Link copied to clipboard
public void subscribeTo(NodePath nodePath, ChildEventListener listener)
Subscribes to the child events of the given node.
Link copied to clipboard
public void update(NodePath nodePath, NodeValue value)
Merges the specified value to the Firebase database node.