fm.liveswitch.DataBufferPoolTracer Class Reference

A data buffer pool tracer. More...

Public Member Functions

 DataBufferPoolTracer (String tag, fm.liveswitch.DataBufferPool pool)
 Initializes a new instance of the fm.liveswitch.DataBufferPoolTracer class. More...
 
fm.liveswitch.DataBufferPool getPool ()
 Gets the underlying pool. More...
 
fm.liveswitch.PoolStatistics getStatistics ()
 Gets the traced usage statistics. More...
 
String getTag ()
 Gets the tag that identifies requests to the underlying pool. More...
 
fm.liveswitch.DataBuffer take (int size)
 Takes a buffer from the pool. More...
 
fm.liveswitch.DataBuffer take (int size, boolean littleEndian)
 Takes a buffer from the pool. More...
 
fm.liveswitch.DataBuffer take (int size, boolean littleEndian, boolean clearBytes)
 Takes a buffer from the pool. More...
 

Detailed Description

A data buffer pool tracer.

Constructor & Destructor Documentation

◆ DataBufferPoolTracer()

fm.liveswitch.DataBufferPoolTracer.DataBufferPoolTracer ( String  tag,
fm.liveswitch.DataBufferPool  pool 
)

Initializes a new instance of the fm.liveswitch.DataBufferPoolTracer class.

Member Function Documentation

◆ getPool()

fm.liveswitch.DataBufferPool fm.liveswitch.DataBufferPoolTracer.getPool ( )

Gets the underlying pool.

◆ getStatistics()

fm.liveswitch.PoolStatistics fm.liveswitch.DataBufferPoolTracer.getStatistics ( )

Gets the traced usage statistics.

◆ getTag()

String fm.liveswitch.DataBufferPoolTracer.getTag ( )

Gets the tag that identifies requests to the underlying pool.

◆ take() [1/3]

fm.liveswitch.DataBuffer fm.liveswitch.DataBufferPoolTracer.take ( int  size)

Takes a buffer from the pool.

Parameters
sizeThe number of bytes needed.

Implements fm.liveswitch.IDataBufferPool.

◆ take() [2/3]

fm.liveswitch.DataBuffer fm.liveswitch.DataBufferPoolTracer.take ( int  size,
boolean  littleEndian 
)

Takes a buffer from the pool.

Parameters
sizeThe number of bytes needed.
littleEndianWhether the data buffer should be little-endian.

Implements fm.liveswitch.IDataBufferPool.

◆ take() [3/3]

fm.liveswitch.DataBuffer fm.liveswitch.DataBufferPoolTracer.take ( int  size,
boolean  littleEndian,
boolean  clearBytes 
)

Takes a buffer from the pool.

Parameters
sizeThe number of bytes needed.
littleEndianWhether the data buffer should be little-endian.
clearBytesWhether to clear the data buffer.

Implements fm.liveswitch.IDataBufferPool.