class ByteBufferPool : DefaultPool<ByteBuffer> |
|
abstract expect class DefaultPool<T : Any> : ObjectPool<T>
Default object pool implementation. |
|
class DirectByteBufferPool : DefaultPool<ByteBuffer> |
|
abstract class NoPoolImpl<T : Any> : ObjectPool<T>
A pool implementation of zero capacity that always creates new instances |
|
interface ObjectPool<T : Any> : Closeable |
|
abstract class SingleInstancePool<T : Any> : ObjectPool<T>
A pool that produces at most one instance |
fun <T : Any, R> ObjectPool<T>.
Borrows and instance of T from the pool, invokes block with it and finally recycles it |
|
fun <T : Any, R> ObjectPool<T>.useInstance(block: (T) -> R): R
Borrows and instance of T from the pool, invokes block with it and finally recycles it |