Gobrs-Async Gobrs-Async
🚘首页
🧧指南
🍭FAQ
💖支持
🚨加入群聊
🍅GitEE (opens new window)
GitHub (opens new window)
🚘首页
🧧指南
🍭FAQ
💖支持
🚨加入群聊
🍅GitEE (opens new window)
GitHub (opens new window)
  • 🥪项目特性

    • 🍿框架设计
  • 🎒框架设计

    • 🥧简介
    • 🍿框架设计
    • 🍍框架落地
  • 🍖快速开始

    • 🍔快速上手
    • 🌭框架集成
      • 准备条件
      • Gobrs-Async 配置
        • Maven依赖
        • 配置 application.yml
        • 启动成功
    • 🥤启动流程
    • 🍪流程参数
    • 🏝流程结果
  • 🥘规则配置

    • 🍅规则配置
  • 🥊任务类型

    • 🍅普通任务
    • 💥重试任务
    • ☄️事务任务
    • 🌈超时任务
    • ⛱方法任务
  • 🔥高级特性

    • 💐线程复用
    • 🧋运行日志
    • 🍜规则热更新
    • 🍑任务中断
    • 🌺可选子流程
    • 🌹状态流程
    • 🍒异常拦截
    • 🥪全局任务拦截
    • 🍏自定义线程池
    • 🍒可选的执行流程
  • 🚐插件

    • 🛻插件简介
    • 🏚监控系列

      • ⛽️skywalkiing
      • 🏖hippo4j
    • 🛸日志系列

      • 🚧全链路traceId
  • 🍿性能考量

    • 🍎框架压测
    • 🍹框架对比
    • 🧅版本号手册
  • 🌕展望

    • 🍊展望
  • 🍯联系作者

    • 🥐加群沟通
目录

🌭框架集成

# 准备条件

所需运行环境

  • Maven
  • JDK1.8
  • Spring

提示

本框架为复杂上游调用了逻辑而设计, 如果只是单纯的使用多线程开发任务, 如果Future 或线程池就可满足用户需求,无需使用本框架。 如果不清楚本框架的使用场景, 请阅读 简介

# Gobrs-Async 配置

公网

# Maven依赖


<dependency>
    <groupId>io.github.memorydoc</groupId>
    <artifactId>gobrs-async-starter</artifactId>
    <version>1.3.0-RELEASE</version>
</dependency>

京东内网

<dependency>
    <groupId>com.jd.gobrs</groupId>
    <artifactId>gobrs-async-starter</artifactId>
    <version>1.0.1-SNAPSHOT</version>
</dependency>

# 配置 application.yml

server:
  port: 8888 # 端口: 8080
spring:
  gobrs:
    async:
      rules:
        # 支持多命名空间
        - name: "ruleName" # 规则名称 
          content: "AService->BService,CService,FService; BService->FService,GService;"
        - name: "azh"
          content: "AService->BService,CService,FService; BService->FService,GService;"
      task-interrupt: false #局部异常是否打断主流程

# 启动成功

启动工程打印如下banner

              ___.                             _____                               
   ____   ____\_ |_________  ______           /  _  \   _________.__. ____   ____  
  / ___\ /  _ \| __ \_  __ \/  ___/  ______  /  /_\  \ /  ___<   |  |/    \_/ ___\ 
 / /_/  >  <_> ) \_\ \  | \/\___ \  /_____/ /    |    \\___ \ \___  |   |  \  \___ 
 \___  / \____/|___  /__|  /____  >         \____|__  /____  >/ ____|___|  /\___  >
/_____/            \/           \/                  \/     \/ \/         \/     \/  :: Gobrs-Async ::                jdk (v1.8.0_251)

GitHub:  https://github.com/dromara/gobrs-async
Gitee:  https://gitee.com/dromara/gobrs-async
Site:  https://docs.sizegang.cn
Last Updated: 1/6/2023, 9:59:30 AM
🍔快速上手
🥤启动流程

← 🍔快速上手 🥤启动流程→

最近更新
更多文章>
Gobrs-Async | Copyright © 2022-2023 Memorydoc | Apache License
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式