Package-level declarations

Types

Link copied to clipboard
interface ByteBufferPool

A pool of byte buffers.

Link copied to clipboard
class ByteBufferPoolNone(isDirect: Boolean = false) : ByteBufferPool

A non-implementation of ByteBufferPool that does not pool any buffers.

Link copied to clipboard
interface ChannelFactory

Factory for creating asynchronous I/O channels.

Link copied to clipboard
class ChannelFactoryDefault(executor: ExecutorService = Executors.newCachedThreadPool(ThreadFactoryNamed("Knio"))) : ChannelFactory

Default implementation of the AsynchronousChannelFactory interface.

Link copied to clipboard
data class KnioContext(val maxTaskBufferSize: Int = DEFAULT_TASK_BUFFER_SIZE, val maxStreamBufferSize: Int = DEFAULT_STREAM_BUFFER_SIZE, val byteBufferPool: ByteBufferPool = DEFAULT_BYTE_BUFFER_POOL, val channelFactory: ChannelFactory = DEFAULT_CHANNEL_FACTORY) : CoroutineContext.Element

The coroutine context element for the knio library.