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

com.pryv.interfaces.GetStreamsCallback Maven / Gradle / Ivy

package com.pryv.interfaces;


import com.pryv.model.Stream;

import java.util.Map;

public interface GetStreamsCallback {

    /**
     * Used for cache callback
     *
     * @param streams root streams
     * @param streamDeletions
     */
    void cacheCallback(Map streams, Map streamDeletions);

    /**
     * Callback used to indicate an error on cache operation
     *
     * @param errorMessage
     */
    void onCacheError(String errorMessage);

    /**
     * used for api callback
     *
     * @param streams root streams
     * @param streamDeletions
     * @param serverTime
     */
    void apiCallback(Map streams, Map streamDeletions, Double serverTime);

    /**
     * when there is an error
     *
     * @param errorMessage
     * @param serverTime
     */
    void onApiError(String errorMessage, Double serverTime);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy