
com.urbanairship.connect.client.StreamConnectionSupplier 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
The newest version!
/*
Copyright 2015-2022 Airship and Contributors
*/
package com.urbanairship.connect.client;
import com.urbanairship.connect.client.model.StreamQueryDescriptor;
import com.urbanairship.connect.java8.Consumer;
import org.asynchttpclient.AsyncHttpClient;
/**
* Interface for supplying the {@link StreamConsumeTask} with a {@link StreamConnection} instance.
*/
interface StreamConnectionSupplier {
/**
* Get a {@link StreamConnection} instance.
*
* @param descriptor StreamQueryDescriptor containing the app credentials and request info.
* @param client AsyncHttpClient
* @param eventConsumer {@code Consumer} of the API response events.
* @return StreamConnection instance.
*/
StreamConnection get(StreamQueryDescriptor descriptor,
AsyncHttpClient client,
Consumer eventConsumer);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy