com.github.slem1.await.Service Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of await-maven-plugin Show documentation
Show all versions of await-maven-plugin Show documentation
A plugin to pause maven build until some services become available.
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