All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.datastax.stargate.sdk.audit.AnsiConsoleLogger Maven / Gradle / Ivy

There is a newer version: 2.3.7
Show newest version
package com.datastax.stargate.sdk.audit;

import com.evanlennick.retry4j.Status;

public class AnsiConsoleLogger implements ApiInvocationObserver {
    
    /** {@inheritDoc} */
    @Override
    public void onCall(ApiInvocationEvent event) {
       System.out.println("Http (" + String.valueOf(event.getResponseCode()) + ") on " + event.getRequestUrl());
    }
    
    /** {@inheritDoc} */
    @Override
    public void onHttpSuccess(Status s) {
    }

    /** {@inheritDoc} */
    @Override
    public void onHttpCompletion(Status s) {
    }

    /** {@inheritDoc} */
    @Override
    public void onHttpFailure(Status s) {
    }

    /** {@inheritDoc} */
    @Override
    public void onHttpFailedTry(Status s) {
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy