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... | |
| long | getPooledBytesAvailable () |
| Gets the total bytes available in the 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... | |
| void | releasePools () |
| Release the pools. 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... | |
A data buffer pool tracer.
| fm.liveswitch.DataBufferPoolTracer.DataBufferPoolTracer | ( | String | tag, |
| fm.liveswitch.DataBufferPool | pool | ||
| ) |
Initializes a new instance of the fm.liveswitch.DataBufferPoolTracer class.
| fm.liveswitch.DataBufferPool fm.liveswitch.DataBufferPoolTracer.getPool | ( | ) |
Gets the underlying pool.
| long fm.liveswitch.DataBufferPoolTracer.getPooledBytesAvailable | ( | ) |
Gets the total bytes available in the pool.
Implements fm.liveswitch.IDataBufferPool.
| fm.liveswitch.PoolStatistics fm.liveswitch.DataBufferPoolTracer.getStatistics | ( | ) |
Gets the traced usage statistics.
| String fm.liveswitch.DataBufferPoolTracer.getTag | ( | ) |
Gets the tag that identifies requests to the underlying pool.
| void fm.liveswitch.DataBufferPoolTracer.releasePools | ( | ) |
Release the pools.
Implements fm.liveswitch.IDataBufferPool.
| fm.liveswitch.DataBuffer fm.liveswitch.DataBufferPoolTracer.take | ( | int | size | ) |
Takes a buffer from the pool.
| size | The number of bytes needed. |
Implements fm.liveswitch.IDataBufferPool.
| fm.liveswitch.DataBuffer fm.liveswitch.DataBufferPoolTracer.take | ( | int | size, |
| boolean | littleEndian | ||
| ) |
Takes a buffer from the pool.
| size | The number of bytes needed. |
| littleEndian | Whether the data buffer should be little-endian. |
Implements fm.liveswitch.IDataBufferPool.
| fm.liveswitch.DataBuffer fm.liveswitch.DataBufferPoolTracer.take | ( | int | size, |
| boolean | littleEndian, | ||
| boolean | clearBytes | ||
| ) |
Takes a buffer from the pool.
| size | The number of bytes needed. |
| littleEndian | Whether the data buffer should be little-endian. |
| clearBytes | Whether to clear the data buffer. |
Implements fm.liveswitch.IDataBufferPool.