public final class SimpleSmartObjectPoolTest extends Object implements org.spf4j.recyclable.ObjectBorower<SimpleSmartObjectPoolTest.TestObject>
Modifier and Type | Class and Description |
---|---|
static class |
SimpleSmartObjectPoolTest.TestObject |
Constructor and Description |
---|
SimpleSmartObjectPoolTest() |
Modifier and Type | Method and Description |
---|---|
boolean |
nevermind(SimpleSmartObjectPoolTest.TestObject object) |
boolean |
scan(org.spf4j.recyclable.Scanable.ScanHandler<SimpleSmartObjectPoolTest.TestObject> handler) |
void |
testPool()
Test of get method, of class SimpleSmartObjectPool.
|
org.spf4j.base.Either<org.spf4j.recyclable.ObjectBorower.Action,SimpleSmartObjectPoolTest.TestObject> |
tryRequestReturnObject() |
SimpleSmartObjectPoolTest.TestObject |
tryReturnObjectIfNotInUse() |
Collection<SimpleSmartObjectPoolTest.TestObject> |
tryReturnObjectsIfNotInUse() |
Collection<SimpleSmartObjectPoolTest.TestObject> |
tryReturnObjectsIfNotNeededAnymore() |
public SimpleSmartObjectPoolTest() throws org.spf4j.recyclable.ObjectCreationException
org.spf4j.recyclable.ObjectCreationException
public org.spf4j.base.Either<org.spf4j.recyclable.ObjectBorower.Action,SimpleSmartObjectPoolTest.TestObject> tryRequestReturnObject()
tryRequestReturnObject
in interface org.spf4j.recyclable.ObjectBorower<SimpleSmartObjectPoolTest.TestObject>
public SimpleSmartObjectPoolTest.TestObject tryReturnObjectIfNotInUse()
tryReturnObjectIfNotInUse
in interface org.spf4j.recyclable.ObjectBorower<SimpleSmartObjectPoolTest.TestObject>
public boolean scan(org.spf4j.recyclable.Scanable.ScanHandler<SimpleSmartObjectPoolTest.TestObject> handler)
scan
in interface org.spf4j.recyclable.Scanable<SimpleSmartObjectPoolTest.TestObject>
public Collection<SimpleSmartObjectPoolTest.TestObject> tryReturnObjectsIfNotNeededAnymore()
tryReturnObjectsIfNotNeededAnymore
in interface org.spf4j.recyclable.ObjectBorower<SimpleSmartObjectPoolTest.TestObject>
public Collection<SimpleSmartObjectPoolTest.TestObject> tryReturnObjectsIfNotInUse()
tryReturnObjectsIfNotInUse
in interface org.spf4j.recyclable.ObjectBorower<SimpleSmartObjectPoolTest.TestObject>
public boolean nevermind(SimpleSmartObjectPoolTest.TestObject object)
nevermind
in interface org.spf4j.recyclable.ObjectBorower<SimpleSmartObjectPoolTest.TestObject>
public void testPool() throws InterruptedException, TimeoutException, org.spf4j.recyclable.ObjectCreationException, org.spf4j.recyclable.ObjectDisposeException
InterruptedException
TimeoutException
org.spf4j.recyclable.ObjectCreationException
org.spf4j.recyclable.ObjectDisposeException
Copyright © 2021 SPF4J. All rights reserved.