All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.firebase.geofire.ThreadEventRaiser Maven / Gradle / Ivy

Go to download

GeoFire is an open-source library for Android/Java that allows you to store and query a set of keys based on their geographic location.

There is a newer version: 2.3.0
Show newest version
package com.firebase.geofire;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

class ThreadEventRaiser implements EventRaiser {

    private final ExecutorService executorService;

    public ThreadEventRaiser() {
        this.executorService = Executors.newSingleThreadExecutor();
    }

    @Override
    public void raiseEvent(Runnable r) {
        this.executorService.submit(r);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy