Proton DotNet
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Static Public Attributes | Properties | List of all members
Apache.Qpid.Proton.Engine.AmqpPerformativeEnvelopePool< T > Class Template Referencesealed

Public Member Functions

 AmqpPerformativeEnvelopePool (Func< AmqpPerformativeEnvelopePool< T >, T > envelopeBuilder)
 Create a new envelope pool using the default pool size.
 
 AmqpPerformativeEnvelopePool (Func< AmqpPerformativeEnvelopePool< T >, T > envelopeBuilder, int maxPoolSize)
 Create a new envelope pool using the given pool size.
 
Take (IPerformative body, ushort channel, IProtonBuffer payload)
 Request to borrow a pooled object or create a new non-pooled instance if no pooled values are available.
 

Static Public Member Functions

static AmqpPerformativeEnvelopePool< IncomingAmqpEnvelopeIncomingEnvelopePool (int maxPoolSize)
 
static AmqpPerformativeEnvelopePool< IncomingAmqpEnvelopeIncomingEnvelopePool ()
 
static AmqpPerformativeEnvelopePool< OutgoingAmqpEnvelopeOutgoingEnvelopePool (int maxPoolSize)
 
static AmqpPerformativeEnvelopePool< OutgoingAmqpEnvelopeOutgoingEnvelopePool ()
 

Static Public Attributes

static readonly int DEFAULT_MAX_POOL_SIZE = 10
 The default maximum pool size to use if not otherwise configured.
 

Properties

int MaxPoolSize [get]
 Returns the configured maximum pool size which indicates how many elements can be pooled before new non-pooled values are created when a request arrives but all the current elements are on loan.
 

Constructor & Destructor Documentation

◆ AmqpPerformativeEnvelopePool() [1/2]

Create a new envelope pool using the default pool size.

Parameters
envelopeBuilderA function that can build the envelopes

◆ AmqpPerformativeEnvelopePool() [2/2]

Apache.Qpid.Proton.Engine.AmqpPerformativeEnvelopePool< T >.AmqpPerformativeEnvelopePool ( Func< AmqpPerformativeEnvelopePool< T >, T >  envelopeBuilder,
int  maxPoolSize 
)
inline

Create a new envelope pool using the given pool size.

Parameters
envelopeBuilderA function that can build the envelopes
maxPoolSizeThe maximum number of entries in the pool

Member Function Documentation

◆ Take()

T Apache.Qpid.Proton.Engine.AmqpPerformativeEnvelopePool< T >.Take ( IPerformative  body,
ushort  channel,
IProtonBuffer  payload 
)
inline

Request to borrow a pooled object or create a new non-pooled instance if no pooled values are available.

Parameters
body
channel
payload
Returns

The documentation for this class was generated from the following file: