public interface

RunLoop

com.google.firebase.database.RunLoop

Class Overview

This interface defines the required functionality for the Firebase Database library's run loop. Most users will not need this interface. However, if you are customizing how the Firebase Database library runs, you can provide your own run loop that implements these methods. See DatabaseConfig for more details.

Summary

Public Methods
abstract void restart()
abstract ScheduledFuture schedule(Runnable r, long milliseconds)
Schedule this operation to run after the specified delay
abstract void scheduleNow(Runnable r)
Append this operation to the queue
abstract void shutdown()

Public Methods

public abstract void restart ()

public abstract ScheduledFuture schedule (Runnable r, long milliseconds)

Schedule this operation to run after the specified delay

Parameters
r The operation to run
milliseconds The delay, in milliseconds
Returns
  • A Future that can be used to cancel the operation if it has not yet started executing

public abstract void scheduleNow (Runnable r)

Append this operation to the queue

Parameters
r The operation to run

public abstract void shutdown ()