com.twitter.finagle.netty4.param.Allocator.scala Maven / Gradle / Ivy
The newest version!
package com.twitter.finagle.netty4.param
import com.twitter.finagle.Stack
import io.netty.buffer.{ByteBufAllocator, PooledByteBufAllocator}
private[finagle] case class Allocator(allocator: ByteBufAllocator)
private[finagle] object Allocator {
implicit val allocatorParam: Stack.Param[Allocator] =
Stack.Param(Allocator(PooledByteBufAllocator.DEFAULT))
}