public interface Pool<T>
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys the pool
|
T |
getResource() |
void |
returnBrokenResource(T resource) |
void |
returnResource(T resource) |
T getResource()
void returnBrokenResource(T resource)
resource
- A broken resource that should be invalidatedvoid returnResource(T resource)
resource
- A resource to return to the poolvoid destroy()
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.