Skip to content

io microsphere spring cloud client service registry endpoint ServiceDeregistrationEndpoint

github-actions[bot] edited this page Jul 5, 2026 · 7 revisions

ServiceDeregistrationEndpoint

Type: Class | Module: microsphere-spring-cloud-commons | Package: io.microsphere.spring.cloud.client.service.registry.endpoint | Since: 1.0.0

Source: microsphere-spring-cloud-commons/src/main/java/io/microsphere/spring/cloud/client/service/registry/endpoint/ServiceDeregistrationEndpoint.java

Overview

The Endpoint @Endpoint for Service Deregistration

Declaration

public class ServiceDeregistrationEndpoint extends AbstractServiceRegistrationEndpoint

Author: Mercy

Version Information

  • Introduced in: 1.0.0
  • Current Project Version: 0.2.22-SNAPSHOT

Version Compatibility

This component is tested and compatible with the following Java versions:

Java Version Status
Java 17 ✅ Compatible
Java 21 ✅ Compatible
Java 25 ✅ Compatible

Examples

Method Examples

stop

// Via actuator HTTP POST to /actuator/serviceDeregistration
ServiceDeregistrationEndpoint endpoint = context.getBean(ServiceDeregistrationEndpoint.class);
boolean wasRunning = endpoint.stop();

Usage

Maven Dependency

Add the following dependency to your pom.xml:

<dependency>
    <groupId>io.github.microsphere-projects</groupId>
    <artifactId>microsphere-spring-cloud-commons</artifactId>
    <version>${microsphere-spring-cloud.version}</version>
</dependency>

Tip: Use the BOM (microsphere-spring-cloud-dependencies) for consistent version management. See the Getting Started guide.

Import

import io.microsphere.spring.cloud.client.service.registry.endpoint.ServiceDeregistrationEndpoint;

API Reference

Public Methods

Method Description
stop Deregisters the service from the ServiceRegistry if it is currently running.

Method Details

stop

public boolean stop()

Deregisters the service from the ServiceRegistry if it is currently running. This is a write operation exposed via the /actuator/serviceDeregistration endpoint.

Example Usage

`// Via actuator HTTP POST to /actuator/serviceDeregistration
ServiceDeregistrationEndpoint endpoint = context.getBean(ServiceDeregistrationEndpoint.class);
boolean wasRunning = endpoint.stop();
`

See Also

  • AbstractAutoServiceRegistration
  • Endpoint

This documentation was auto-generated from the source code of microsphere-spring-cloud.

Home

spring-cloud-commons

spring-cloud-openfeign

Clone this wiki locally