1

Is commons.apache.org.GenericObjectPool<T> thread-safe ? I am mostly interested in borrowObject() and returnObject() operations.

Jk1
  • 11,233
  • 9
  • 54
  • 64
dragos.luca
  • 241
  • 2
  • 9

2 Answers2

1

After doing some internet search and some personal tests to confirm the answer indeed the GenericObjectPool is thread safe.

dragos.luca
  • 241
  • 2
  • 9
0

I have faced an issue with borrow object method. "It doesnt seems to be thread safe. " Sorry for this wrong comment. It is thread safe only.

Bijesh CHandran
  • 477
  • 1
  • 8
  • 22