public class Pool
extends java.lang.Object
Constructor and Description |
---|
Pool(int size)
Constructs a pool that will limit the number of objects which it can
contain.
|
public Pool(int size)
size
- The maximum number of items that can be put into the pool.public void put(java.lang.Object o) throws java.lang.InterruptedException
o
- Object to be put in the pool.java.lang.InterruptedException
public java.lang.Object get() throws java.lang.InterruptedException
java.lang.InterruptedException
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.