Skip to content

io microsphere netflix eureka server spring cloud tomcat servlet listener ReplicatedInstanceListener

github-actions[bot] edited this page Aug 23, 2026 · 3 revisions

ReplicatedInstanceListener

Type: Class | Module: microsphere-netflix-eureka-server-spring-cloud | Package: io.microsphere.netflix.eureka.server.spring.cloud.tomcat.servlet.listener | Since: 1.0.0

Source: microsphere-netflix-eureka-server-spring-cloud/src/main/java/io/microsphere/netflix/eureka/server/spring/cloud/tomcat/servlet/listener/ReplicatedInstanceListener.java

Overview

Replicated Instance Listener implements

- `ServletContextListener`
- `ServletContextAttributeListener`
- `ChannelListener`

Declaration

public class ReplicatedInstanceListener implements ServletContextListener, ChannelListener

Author: Mercy

Version Information

  • Introduced in: 1.0.0
  • Current Project Version: 0.2.0-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

Usage

Maven Dependency

Add the following dependency to your pom.xml:

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

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

Import

import io.microsphere.netflix.eureka.server.spring.cloud.tomcat.servlet.listener.ReplicatedInstanceListener;

API Reference

Public Methods

Method Description
contextInitialized
contextDestroyed
stop
messageReceived
accept
getRegistry
getEurekaServerContext
get Get the ReplicatedInstanceListener from the ServletContext

Method Details

get

public static ReplicatedInstanceListener get(ServletContext servletContext)

Get the ReplicatedInstanceListener from the ServletContext

See Also

  • EurekaServerListener
  • ServletContextListener
  • ServletContextAttributeListener
  • ChannelListener

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

Clone this wiki locally