mat_boy
mat_boy

Reputation: 13676

Apache pool2: examples?

I find Apache pool2 very different from Apache pool. For instance the purposes of BasePoolableObjectFactory are not similar to BasePooledObjectFactory.

This stated, there are still no examples on the official website. Now,suppose that you have a class X and that you want to create a pool of object Xs.How can you do that with Apache Pool2?

Here follows class X

public class X{
  List<Integer> alist;

  public X(){
    alist = new ArrayList<>();
  }
} 

Upvotes: 0

Views: 3310

Answers (1)

constantlearner
constantlearner

Reputation: 5247

The are some test cases which you can refer about how to use pools:

Upvotes: 4

Related Questions