Package org.kiwiproject.consul.async
Interface EventResponseCallback
public interface EventResponseCallback
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.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonComplete(EventResponse eventResponse) Callback for a successfulEventResponse.voidCallback for an unsuccessful request.
-
Method Details
-
onComplete
Callback for a successfulEventResponse.- Parameters:
eventResponse- The Consul event response.
-
onFailure
Callback for an unsuccessful request.- Parameters:
throwable- The exception thrown.
-