public final class SimpleSmartObjectPoolTest extends Object implements ObjectBorower<SimpleSmartObjectPoolTest.TestObject>
Modifier and Type | Class and Description |
---|---|
static class |
SimpleSmartObjectPoolTest.TestObject |
ObjectBorower.Action
Scanable.ScanHandler<O>
Constructor and Description |
---|
SimpleSmartObjectPoolTest() |
Modifier and Type | Method and Description |
---|---|
boolean |
scan(Scanable.ScanHandler<SimpleSmartObjectPoolTest.TestObject> handler) |
void |
testPool()
Test of borrowObject method, of class SimpleSmartObjectPool.
|
Either<ObjectBorower.Action,SimpleSmartObjectPoolTest.TestObject> |
tryRequestReturnObject() |
SimpleSmartObjectPoolTest.TestObject |
tryReturnObjectIfNotInUse() |
Collection<SimpleSmartObjectPoolTest.TestObject> |
tryReturnObjectsIfNotInUse() |
Collection<SimpleSmartObjectPoolTest.TestObject> |
tryReturnObjectsIfNotNeededAnymore() |
public SimpleSmartObjectPoolTest() throws ObjectCreationException
ObjectCreationException
public Either<ObjectBorower.Action,SimpleSmartObjectPoolTest.TestObject> tryRequestReturnObject()
tryRequestReturnObject
in interface ObjectBorower<SimpleSmartObjectPoolTest.TestObject>
public SimpleSmartObjectPoolTest.TestObject tryReturnObjectIfNotInUse()
tryReturnObjectIfNotInUse
in interface ObjectBorower<SimpleSmartObjectPoolTest.TestObject>
public boolean scan(Scanable.ScanHandler<SimpleSmartObjectPoolTest.TestObject> handler)
scan
in interface Scanable<SimpleSmartObjectPoolTest.TestObject>
public Collection<SimpleSmartObjectPoolTest.TestObject> tryReturnObjectsIfNotNeededAnymore()
tryReturnObjectsIfNotNeededAnymore
in interface ObjectBorower<SimpleSmartObjectPoolTest.TestObject>
public Collection<SimpleSmartObjectPoolTest.TestObject> tryReturnObjectsIfNotInUse()
tryReturnObjectsIfNotInUse
in interface ObjectBorower<SimpleSmartObjectPoolTest.TestObject>
Copyright © 2014. All rights reserved.