Package io.stargate.sdk.http.audit
Class AnsiLoggerObserverHttp
java.lang.Object
io.stargate.sdk.http.audit.AnsiLoggerObserverHttp
- All Implemented Interfaces:
ServiceCallObserver<String,ServiceHttp, ServiceHttpCallEvent>
- Direct Known Subclasses:
AnsiLoggerObserverHttpLight
public class AnsiLoggerObserverHttp
extends Object
implements ServiceCallObserver<String,ServiceHttp,ServiceHttpCallEvent>
Listener that log call in the Db
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonCall(ServiceHttpCallEvent event) Process event.voidonCompletion(com.evanlennick.retry4j.Status<String> s) Get notified when http execution is donevoidonFailedTry(com.evanlennick.retry4j.Status<String> s) On try failed.voidGet notified when error in http call.voidGet notified when the retry is in success.
-
Constructor Details
-
AnsiLoggerObserverHttp
public AnsiLoggerObserverHttp()Default constructor.
-
-
Method Details
-
onCall
Process event.- Specified by:
onCallin interfaceServiceCallObserver<String,ServiceHttp, ServiceHttpCallEvent> - Parameters:
event- api invocation event
-
onSuccess
Get notified when the retry is in success.- Specified by:
onSuccessin interfaceServiceCallObserver<String,ServiceHttp, ServiceHttpCallEvent> - Parameters:
s- invocation details
-
onCompletion
Get notified when http execution is done- Specified by:
onCompletionin interfaceServiceCallObserver<String,ServiceHttp, ServiceHttpCallEvent> - Parameters:
s- invocation details
-
onFailure
Get notified when error in http call.- Specified by:
onFailurein interfaceServiceCallObserver<String,ServiceHttp, ServiceHttpCallEvent> - Parameters:
s- invocation details
-
onFailedTry
On try failed.- Specified by:
onFailedTryin interfaceServiceCallObserver<String,ServiceHttp, ServiceHttpCallEvent> - Parameters:
s- invocation details
-