Giter VIP home page Giter VIP logo

rabbitmq-intercepter's Introduction

概述

rabbitmq-intercepter是通过javassist字节码注入的方式实现的RMQ拦截器,支持producer和consumer的拦截,同时开放SPI扩展.

环境

  • Gradle
  • Java 8

Compile

gradle clean build -x test

使用

dependencies {
    compile 'com.infi:rabbitmq-intercepter:0.0.1-SNAPSHOT'
}
  • 程序入口初始化
@SpringBootApplication
public class TestApplication {

  static {
  	// 需要加在RMQ class类之前初始化,建议在程序入口
    RmqIntercepterInitializer.getInstance().init();
  }

  public static void main(String[] args) throws Exception {
    SpringApplication application = new SpringApplication(TestApplication.class);
    application.run(args);
  }
}
  • SPI扩展
//Producer拦截SPI接口
com.infi.rabbitmq.intercepter.spi.RmqProducerIntercepter
//Consumer拦截SPI接口
com.infi.rabbitmq.intercepter.spi.RmqConsumerIntercepter
// 具体参照testcase

rabbitmq-intercepter's People

Contributors

wuxianinfi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.