Skip to content

sytuacmdyh/amqp-client-pool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

amqp-client-pool

java rabbitmq connection pool

Requirement

java > 1.8

Usage

import com.yzccz.rabbit.ChannelPool;
import com.rabbitmq.client.Channel;

private void test(){
    final ChannelPool channelPool = new ChannelPool();
    Channel channel = channelPool.getChannel();
    // ... do something with the offical channel
}

Compare

1. without pool

no-pool

2. with pool

no-pool