com.urbanairship.connect.client.StreamSupplier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of connect-client Show documentation
Show all versions of connect-client Show documentation
The UA Connect Java client library
/*
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