Package io.stargate.sdk.audit
Class ServiceCallObserverAnsiLogger
java.lang.Object
io.stargate.sdk.audit.ServiceCallObserverAnsiLogger
- All Implemented Interfaces:
ServiceCallObserver<String,Service, ServiceCallEvent<Service>>
public class ServiceCallObserverAnsiLogger
extends Object
implements ServiceCallObserver<String,Service,ServiceCallEvent<Service>>
Listener that log call in the Db
- Author:
- Cedrick LUNVEN (@clunven)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonCall(ServiceCallEvent<Service> 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
-
ServiceCallObserverAnsiLogger
public ServiceCallObserverAnsiLogger()Default constructor.
-
-
Method Details
-
onCall
Process event.- Specified by:
onCallin interfaceServiceCallObserver<String,Service, ServiceCallEvent<Service>> - Parameters:
event- api invocation event
-
onSuccess
Description copied from interface:ServiceCallObserverGet notified when the retry is in success.- Specified by:
onSuccessin interfaceServiceCallObserver<String,Service, ServiceCallEvent<Service>> - Parameters:
s- invocation details
-
onCompletion
Description copied from interface:ServiceCallObserverGet notified when http execution is done- Specified by:
onCompletionin interfaceServiceCallObserver<String,Service, ServiceCallEvent<Service>> - Parameters:
s- invocation details
-
onFailure
Description copied from interface:ServiceCallObserverGet notified when error in http call.- Specified by:
onFailurein interfaceServiceCallObserver<String,Service, ServiceCallEvent<Service>> - Parameters:
s- invocation details
-
onFailedTry
Description copied from interface:ServiceCallObserverOn try failed.- Specified by:
onFailedTryin interfaceServiceCallObserver<String,Service, ServiceCallEvent<Service>> - Parameters:
s- invocation details
-