Skip to content

io microsphere multiple active zone ZoneContext

github-actions[bot] edited this page Jun 20, 2026 · 5 revisions

ZoneContext

Type: Class | Module: microsphere-multiactive-commons | Package: io.microsphere.multiple.active.zone | Since: 1.0.0

Source: microsphere-multiactive-commons/src/main/java/io/microsphere/multiple/active/zone/ZoneContext.java

Overview

The context of zone

Declaration

public class ZoneContext

Author: Mercy

Version Information

  • Introduced in: 1.0.0
  • Current Project Version: 0.2.7-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-multiactive-commons</artifactId>
    <version>${microsphere-multiactive.version}</version>
</dependency>

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

Import

import io.microsphere.multiple.active.zone.ZoneContext;

API Reference

Public Methods

Method Description
setEnabled
setZone
setPreferenceEnabled
setPreferenceFilterOrder
setPreferenceUpstreamZoneReadyPercentage
setPreferenceUpstreamSameZoneMinAvailable
setPreferenceUpstreamDisabledZone
addPropertyChangeListener
removePropertyChangeListener
isEnabled
getZone
isPreferenceEnabled
getPreferenceFilterOrder
getPreferenceUpstreamZoneReadyPercentage
getPreferenceUpstreamSameZoneMinAvailable
getPreferenceUpstreamDisabledZone
enable Enable and returns previous enabled status
reset Reset to default status
get Get current ZoneContext
getCurrentZone Get current zone

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

Clone this wiki locally