Package com.orbitz.consul.async
Interface EventResponseCallback
-
public interface EventResponseCallbackFor 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 Type Method Description voidonComplete(EventResponse EventResponse)Callback for a successfulEventResponse.voidonFailure(java.lang.Throwable throwable)Callback for an unsuccessful request.
-
-
-
Method Detail
-
onComplete
void onComplete(EventResponse EventResponse)
Callback for a successfulEventResponse.- Parameters:
EventResponse- The Consul event response.
-
onFailure
void onFailure(java.lang.Throwable throwable)
Callback for an unsuccessful request.- Parameters:
throwable- The exception thrown.
-
-