| Interface | Description |
|---|---|
| ScopedResource<T> |
A scoped resource, it is drawn from a "pool" of sorts, and will be returned
to that pool when
ScopedResource.close() is called. |
| ScopedResourcePool<T> |
A pool of resources, whereby a lease is taken on an instance
by calling
ScopedResourcePool.get() and that lease is relinquished when
ScopedResource.close() is called. |
| Class | Description |
|---|---|
| ScopedThreadLocal<T> |
A thread-local
ScopedResourcePool. |
| StrongReferenceScopedResource<T> |
A
ScopedResource that will always retain a strong reference to the
contained resource, even when not "in use" |
| WeakReferenceScopedResource<T> |
A weak-referenced
ScopedResource when the resource is acquired, we create
a strong reference to prevent it being GC'd while it's "in use". |
Copyright © 2024. All rights reserved.