io.quarkiverse.githubapp.runtime.sse.EventStreamAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-github-app Show documentation
Show all versions of quarkus-github-app Show documentation
Automate GitHub tasks with a GitHub App
package io.quarkiverse.githubapp.runtime.sse;
import java.net.http.HttpResponse;
import io.quarkiverse.githubapp.runtime.sse.HttpEventStreamClient.Event;
/**
* Base class for event stream listeners that can be used for the {@link HttpEventStreamClient}
*
* @author LupCode.com (Luca Vogels)
* @since 2020-12-22
*/
public abstract class EventStreamAdapter implements EventStreamListener {
@Override
public void onEvent(HttpEventStreamClient client, Event event) {
}
@Override
public void onError(HttpEventStreamClient client, Throwable throwable) {
throwable.printStackTrace();
}
@Override
public void onReconnect(HttpEventStreamClient client, HttpResponse response, boolean hasReceivedEvents,
long lastEventID) {
}
@Override
public void onClose(HttpEventStreamClient client, HttpResponse response) {
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy