Methods Summary |
---|
protected abstract java.lang.Object | doGet()
|
protected abstract void | doInitializeItems(int numItems)
|
protected abstract boolean | doReturn(java.lang.Object object)
|
public java.lang.Object | getItem()
available_.acquire();
return doGet();
|
public void | initialize()
doInitializeItems(numItems_);
|
public void | returnItem(java.lang.Object o)
if( doReturn(o) ) {
available_.release();
}
|