Skip to content

io microsphere alibaba sentinel common SentinelOperations

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

SentinelOperations

Type: Interface | 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/SentinelOperations.java

Overview

The common operations for Sentinel:

- One-Time Operations :
 
     - execution with result:
             
                 - `#call(String, String, String, ThrowableFunction)`
                 - `#execute(String, String, String, Function)`
             
     
     - execution without result:
            
                - `#call(String, String, String, ThrowableAction)`
                - `#call(String, String, String, ThrowableConsumer)`
                - `#execute(String, String, String, Runnable)`
                - `#execute(String, String, String, Consumer)`
            
     
 

- Two-Phase Operations :
   - `#begin(String, String, String) the first phase`
   - `#end(SentinelContext) the second phase`

Declaration

public interface SentinelOperations

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.SentinelOperations;

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

Clone this wiki locally