Package com.orbitz.consul.monitoring
Class ClientEventHandler
- java.lang.Object
-
- com.orbitz.consul.monitoring.ClientEventHandler
-
public class ClientEventHandler extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ClientEventHandler(java.lang.String clientName, ClientEventCallback callback)
-
Method Summary
Modifier and Type Method Description voidcachePollingError(CacheDescriptor cacheDescriptor, java.lang.Throwable throwable)voidcachePollingSuccess(CacheDescriptor cacheDescriptor, boolean withNotification, java.time.Duration duration)voidcacheStart(CacheDescriptor cacheDescriptor)voidcacheStop(CacheDescriptor cacheDescriptor)voidhttpRequestFailure(okhttp3.Request request, java.lang.Throwable throwable)voidhttpRequestInvalid(okhttp3.Request request, java.lang.Throwable throwable)voidhttpRequestSuccess(okhttp3.Request request)voidstop()
-
-
-
Constructor Detail
-
ClientEventHandler
public ClientEventHandler(java.lang.String clientName, ClientEventCallback callback)
-
-
Method Detail
-
httpRequestSuccess
public void httpRequestSuccess(okhttp3.Request request)
-
httpRequestInvalid
public void httpRequestInvalid(okhttp3.Request request, java.lang.Throwable throwable)
-
httpRequestFailure
public void httpRequestFailure(okhttp3.Request request, java.lang.Throwable throwable)
-
cacheStart
public void cacheStart(CacheDescriptor cacheDescriptor)
-
cacheStop
public void cacheStop(CacheDescriptor cacheDescriptor)
-
cachePollingError
public void cachePollingError(CacheDescriptor cacheDescriptor, java.lang.Throwable throwable)
-
cachePollingSuccess
public void cachePollingSuccess(CacheDescriptor cacheDescriptor, boolean withNotification, java.time.Duration duration)
-
stop
public void stop()
-
-