Skip to content

io microsphere alibaba sentinel common AbstractSentinelPlugin

github-actions[bot] edited this page May 24, 2026 · 1 revision

AbstractSentinelPlugin

Type: Class | Module: microsphere-alibaba-sentinel-commons | Package: io.microsphere.alibaba.sentinel.common | Since: 1.0.0

Source: microsphere-alibaba-sentinel-commons/src/main/java/io/microsphere/alibaba/sentinel/common/AbstractSentinelPlugin.java

Overview

Abstract SentinelPlugin Sentinel Plugin class

Declaration

public abstract class AbstractSentinelPlugin implements SentinelPlugin

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-alibaba-sentinel-commons</artifactId>
    <version>${microsphere-alibaba-sentinel.version}</version>
</dependency>

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

Import

import io.microsphere.alibaba.sentinel.common.AbstractSentinelPlugin;

API Reference

Public Methods

Method Description
enable Enable this SentinelPlugin Sentinel Plugin
disable Disable this SentinelPlugin Sentinel Plugin
isEnabled Is this SentinelPlugin Sentinel Plugin enabled ?
setEnabled Set whether this SentinelPlugin Sentinel Plugin enabled or not
getName Get the name of this SentinelPlugin Sentinel Plugin
getContextName Get the context name of this SentinelPlugin Sentinel Plugin
getOrigin Get the origin of this SentinelPlugin Sentinel Plugin
getResourceType Get the resource type of this SentinelPlugin Sentinel Plugin
getTrafficType Get the traffic type of this SentinelPlugin Sentinel Plugin
isAutoInstalled Is auto installed this SentinelPlugin Sentinel Plugin?

Method Details

disable

public void disable()

Disable this SentinelPlugin Sentinel Plugin

isEnabled

public boolean isEnabled()

Is this SentinelPlugin Sentinel Plugin enabled ?

setEnabled

public void setEnabled(boolean enabled)

Set whether this SentinelPlugin Sentinel Plugin enabled or not

getName

public String getName()

Get the name of this SentinelPlugin Sentinel Plugin

getContextName

public String getContextName()

Get the context name of this SentinelPlugin Sentinel Plugin

getOrigin

public String getOrigin()

Get the origin of this SentinelPlugin Sentinel Plugin

getResourceType

public int getResourceType()

Get the resource type of this SentinelPlugin Sentinel Plugin

getTrafficType

public EntryType getTrafficType()

Get the traffic type of this SentinelPlugin Sentinel Plugin

isAutoInstalled

public boolean isAutoInstalled()

Is auto installed this SentinelPlugin Sentinel Plugin?

See Also

  • SentinelPlugin

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

Clone this wiki locally