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

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

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 - 2024 Weber Informatics LLC | Privacy Policy