Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 456 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 456 Bytes

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