BufferPoolManager Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
You can use the BufferManager class to manage a buffer pool. The pool is created when you instantiate this class . Buffer is instantiated when there are no unused buffers in the pool. Destroyed when the buffer pool is reclaimed by garbage collection. Every time you need to use a buffer, you take one from the pool, use it, and return it to the pool when done. This process is much faster than creating and destroying a buffer every time you need to use one.
public sealed class BufferPoolManager : Microsoft.ServiceFabric.Services.Remoting.V2.Messaging.IBufferPoolManager
type BufferPoolManager = class
interface IBufferPoolManager
Public NotInheritable Class BufferPoolManager
Implements IBufferPoolManager
- Inheritance
-
BufferPoolManager
- Implements
Buffer |
Initializes a new instance of the BufferPoolManager class. |
Return |
Returns a buffer to the pool. if limit crosses, buffer won't be returned to the Pool. It return false , if buffer is not returned. |
Take |
Gets a buffer from the pool. if it doesn't find any unused buffer , it instantiate new buffer. |
Продукт | Версії |
---|---|
Azure SDK for .NET | Latest |
Відгук про Azure SDK for .NET
Azure SDK for .NET – це проект із відкритим кодом. Виберіть посилання, щоб надати відгук: