INTERNAL API A buffer pool which keeps a free list of direct buffers of a specified default size in a simple fixed size stack. If the stack is full the buffer is de-referenced and available to be freed by normal garbage collection.
Inheritance: IBufferPool
示例#1
0
 public UdpConnectedExt(ExtendedActorSystem system)
 {
     Settings   = new Udp.UdpSettings(system.Settings.Config.GetConfig("akka.io.udp-connected"));
     BufferPool = new DirectByteBufferPool(Settings.DirectBufferSize, Settings.MaxDirectBufferPoolSize);
     _manager   = system.SystemActorOf(
         props: Props.Create(() => new UdpConnectedManager(this)).WithDeploy(Deploy.Local),
         name: "IO-UDP-CONN");
 }