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

com.urbanairship.connect.client.StreamSupplier Maven / Gradle / Ivy

There is a newer version: 5.4.2
Show newest version
/*
Copyright 2015 Urban Airship and Contributors
*/

package com.urbanairship.connect.client;

import com.ning.http.client.AsyncHttpClient;
import com.urbanairship.connect.java8.Consumer;

/**
 * Interface for supplying the {@link MobileEventConsumerService} with
 * a {@link com.urbanairship.connect.client.MobileEventStream} instance.
 */
public interface StreamSupplier {

    /**
     * Get the {@link com.urbanairship.connect.client.MobileEventStream} instance.
     *
     * @param descriptor StreamDescriptor containing the app credentials and request info.
     * @param client AsyncHttpClient
     * @param eventConsumer {@code Consumer} of the API response events.
     * @param url The API URL as a String.
     * @param fatalExceptionHandler see {@link FatalExceptionHandler}.
     * @return MobileEventStream instance.
     */
    MobileEventStream get(StreamQueryDescriptor descriptor,
                          AsyncHttpClient client,
                          Consumer eventConsumer,
                          String url,
                          FatalExceptionHandler fatalExceptionHandler);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy