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

org.asynchttpclient.shaded.util.Counted Maven / Gradle / Ivy

package org.asynchttpclient.shaded.util;

/**
 * An interface that defines useful methods to check how many {@linkplain org.asynchttpclient.shaded.AsyncHttpClient}
 * instances this particular implementation is shared with.
 */
public interface Counted {

    /**
     * Increment counter and return the incremented value
     */
    int incrementAndGet();

    /**
     * Decrement counter and return the decremented value
     */
    int decrementAndGet();

    /**
     * Return the current counter
     */
    int count();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy