Package org.kiwiproject.consul.async
Interface ConsulResponseCallback<T>
- Type Parameters:
T- The Response type.
public interface ConsulResponseCallback<T>
For 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(ConsulResponse<T> consulResponse) Callback for a successfulConsulResponse.voidCallback for an unsuccessful request.
-
Method Details
-
onComplete
Callback for a successfulConsulResponse.- Parameters:
consulResponse- The Consul response.
-
onFailure
Callback for an unsuccessful request.- Parameters:
throwable- The exception thrown.
-