
org.kiwiproject.consul.async.EventResponseCallback Maven / Gradle / Ivy
package org.kiwiproject.consul.async;
import org.kiwiproject.consul.model.EventResponse;
/**
* For Event API calls that support long-polling, this callback is used to handle
* the result on success or failure for an async HTTP call.
*/
public interface EventResponseCallback {
/**
* Callback for a successful {@link EventResponse}.
*
* @param eventResponse The Consul event response.
*/
void onComplete(EventResponse eventResponse);
/**
* Callback for an unsuccessful request.
*
* @param throwable The exception thrown.
*/
void onFailure(Throwable throwable);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy