-
Notifications
You must be signed in to change notification settings - Fork 30
io microsphere spring cloud client service registry event RegistrationEvent
Type: Class | Module: microsphere-spring-cloud-commons | Package: io.microsphere.spring.cloud.client.service.registry.event | Since: 1.0.0
The Spring event for ServiceRegistry
public abstract class RegistrationEvent extends ApplicationEventAuthor: Mercy
-
Introduced in:
1.0.0 -
Current Project Version:
0.2.20-SNAPSHOT
This component is tested and compatible with the following Java versions:
| Java Version | Status |
|---|---|
| Java 17 | ✅ Compatible |
| Java 21 | ✅ Compatible |
| Java 25 | ✅ Compatible |
ServiceRegistry<Registration> registry = ...;
Registration registration = ...;
// Typically used through a subclass such as RegistrationRegisteredEvent
RegistrationRegisteredEvent event = new RegistrationRegisteredEvent(registry, registration);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 io.microsphere.spring.cloud.client.service.registry.event.RegistrationEvent;| Method | Description |
|---|---|
getSource |
Create a new RegistrationEvent with the given ServiceRegistry and Registration. |
getRegistration |
Get the registration |
getRegistry |
Get the ServiceRegistry
|
isPreRegistered |
Current event is raised before the #getRegistration() registration is |
isRegistered |
Current event is raised after the #getRegistration() registration is |
isPreDeregistered |
Current event is raised before the #getRegistration() registration is |
isDeregistered |
Current event is raised after the #getRegistration() registration is |
public Registration getSource()Create a new RegistrationEvent with the given ServiceRegistry and Registration.
Example Usage:
`ServiceRegistry registry = ...; Registration registration = ...; // Typically used through a subclass such as RegistrationRegisteredEvent RegistrationRegisteredEvent event = new RegistrationRegisteredEvent(registry, registration); `
public final boolean isPreRegistered()Current event is raised before the #getRegistration() registration is
ServiceRegistry#register(Registration) registered.
public final boolean isRegistered()Current event is raised after the #getRegistration() registration is
ServiceRegistry#register(Registration) registered.
public final boolean isPreDeregistered()Current event is raised before the #getRegistration() registration is
ServiceRegistry#deregister(Registration) deregistered.
public final boolean isDeregistered()Current event is raised after the #getRegistration() registration is
ServiceRegistry#deregister(Registration) deregistered.
RegistrationPreRegisteredEventRegistrationRegisteredEventRegistrationPreDeregisteredEventRegistrationDeregisteredEventServiceRegistry
This documentation was auto-generated from the source code of microsphere-spring-cloud.
spring-cloud-commons
- AbstractServiceRegistrationEndpoint
- CommonsPropertyConstants
- ConditionalOnAutoServiceRegistrationAvailable
- ConditionalOnAutoServiceRegistrationEnabled
- ConditionalOnBlockingDiscoveryAvailable
- ConditionalOnFeaturesAvailable
- ConditionalOnFeaturesEnabled
- ConditionalOnLoadBalancerEnabled
- ConditionalOnMultipleRegistrationEnabled
- ConditionalOnReactiveDiscoveryAvailable
- ConditionalOnUtilEnabled
- ConfigurationPropertyHasFeaturesAutoConfiguration
- DefaultRegistration
- DiscoveryClientAutoConfiguration
- DiscoveryClientConstants
- DiscoveryUtils
- EventPublishingRegistrationAspect
- FaultTolerancePropertyConstants
- FeaturesConstants
- FeaturesProperties
- FeaturesUtils
- InMemoryServiceRegistry
- InstanceConstants
- LoadBalancerUtils
- MultipleAutoServiceRegistration
- MultipleRegistration
- MultipleServiceRegistry
- NamedFeatureComparator
- ReactiveDiscoveryClientAdapter
- ReactiveDiscoveryClientAutoConfiguration
- RegistrationCustomizer
- RegistrationDeregisteredEvent
- RegistrationEvent
- RegistrationMetaData
- RegistrationPreDeregisteredEvent
- RegistrationPreRegisteredEvent
- RegistrationRegisteredEvent
- ServiceDeregistrationEndpoint
- ServiceInstanceUtils
- ServiceInstancesChangedEvent
- ServiceRegistrationEndpoint
- ServiceRegistrationEndpointAutoConfiguration
- ServiceRegistryAutoConfiguration
- SimpleAutoServiceRegistration
- SimpleAutoServiceRegistrationAutoConfiguration
- SimpleServiceRegistry
- SpecificationAutoConfiguration
- SpecificationBeanPostProcessor
- SpecificationCustomizer
- SpringCloudPropertyConstants
- TomcatDynamicConfigurationListener
- TomcatFaultToleranceAutoConfiguration
- UnionDiscoveryClient
- WebFluxServiceRegistryAutoConfiguration
- WebMvcServiceRegistryAutoConfiguration
- WebServiceRegistryAutoConfiguration
- WeightedRoundRobin
spring-cloud-openfeign
- AutoRefreshCapability
- AutoRefreshCapabilityCustomizer
- CompositedRequestInterceptor
- DecoratedContract
- DecoratedDecoder
- DecoratedEncoder
- DecoratedErrorDecoder
- DecoratedFeignComponent
- DecoratedQueryMapEncoder
- DecoratedRetryer
- EnableFeignAutoRefresh
- FeignAutoConfiguration
- FeignClientAutoRefreshAutoConfiguration
- FeignClientConfigurationChangedListener
- FeignComponentRegistry
- NoOpRequestInterceptor
- Refreshable