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

org.refcodes.rest.ext.eureka.EurekaServiceStatusAccessor Maven / Gradle / Ivy

Go to download

Artifact for providing Spring Boot's Eureka microservice registry/ discovery support.

There is a newer version: 3.3.9
Show newest version
// /////////////////////////////////////////////////////////////////////////////
// REFCODES.ORG
// =============================================================================
// This code is copyright (c) by Siegfried Steiner, Munich, Germany and licensed
// under the following (see "http://en.wikipedia.org/wiki/Multi-licensing")
// licenses:
// =============================================================================
// GNU General Public License, v3.0 ("http://www.gnu.org/licenses/gpl-3.0.html")
// together with the GPL linking exception applied; as being applied by the GNU
// Classpath ("http://www.gnu.org/software/classpath/license.html")
// =============================================================================
// Apache License, v2.0 ("http://www.apache.org/licenses/LICENSE-2.0")
// =============================================================================
// Please contact the copyright holding author(s) of the software artifacts in
// question for licensing issues not being covered by the above listed licenses,
// also regarding commercial licensing models or regarding the compatibility
// with other open source licenses.
// /////////////////////////////////////////////////////////////////////////////

package org.refcodes.rest.ext.eureka;

/**
 * Provides an accessor for a Eureka service status property.
 */
public interface EurekaServiceStatusAccessor {

	/**
	 * Retrieves the Eureka service status from the Eureka service status
	 * property.
	 * 
	 * @return The Eureka service status stored by the Eureka service status
	 *         property.
	 */
	EurekaServiceStatus getEurekaServiceStatus();

	/**
	 * Provides a mutator for a Eureka service status property.
	 */
	public interface EurekaServiceStatusMutator {

		/**
		 * Sets the Eureka service status for the Eureka service status
		 * property.
		 * 
		 * @param aServiceStatus The Eureka service status to be stored by the
		 *        Eureka service status property.
		 */
		void setEurekaServiceStatus( EurekaServiceStatus aServiceStatus );
	}

	/**
	 * Provides a mutator for an Eureka service status property.
	 * 
	 * @param  The builder which implements the
	 *        {@link EurekaServiceStatusBuilder}.
	 */
	public interface EurekaServiceStatusBuilder> {

		/**
		 * Sets the Eureka service status to use and returns this builder as of
		 * the builder pattern.
		 * 
		 * @param aServiceStatus The Eureka service status to be stored by the
		 *        Eureka service status property.
		 * 
		 * @return This {@link EurekaServiceStatusBuilder} instance to continue
		 *         configuration.
		 */
		public B withEurekaServiceStatus( EurekaServiceStatus aServiceStatus );
	}

	/**
	 * Provides a Eureka service status property.
	 */
	public interface EurekaServiceStatusProperty extends EurekaServiceStatusAccessor, EurekaServiceStatusMutator {}
}