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

com.github.slem1.await.Service Maven / Gradle / Ivy

There is a newer version: 1.2.2
Show newest version
package com.github.slem1.await;

/**
 * Interface implemented by classes responsible for checking the availability of service.
 *
 * @author slemoine
 */
public interface Service {

    /**
     * Try to connect to the service. Throws {@link ServiceUnavailableException} if the service
     * is unavailable. Otherwise, exit normally.
     *
     * @throws ServiceUnavailableException if the service cannot be reached or is not ready.
     */
    void execute() throws ServiceUnavailableException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy