Inheritance diagram for BoundedFIFO:

Public Member Functions | |
| BoundedFIFO (int maxSize) | |
| spi::LoggingEventPtr | get () |
| void | put (const spi::LoggingEventPtr &o) |
| int | getMaxSize () const |
| bool | isFull () const |
| int | length () const |
| void | resize (int newSize) |
| bool | wasEmpty () const |
| bool | wasFull () const |
BoundedFIFO serves as the bounded first-in-first-out buffer heavily used by the AsyncAppender.
|
|
Instantiate a new BoundedFIFO with a maximum size passed as argument. |
|
|
Get the first element in the buffer. Returns |
|
|
Get the maximum size of the buffer. |
|
|
Return |
|
|
Get the number of elements in the buffer. This number is guaranteed to be in the range 0 to |
|
|
Place a LoggingEvent in the buffer. If the buffer is full then the event is silently dropped. It is the caller's responsability to make sure that the buffer has free space. |
|
|
Resize the buffer to a new size. If the new size is smaller than the old size events might be lost. |
|
|
Returns |
|
|
Returns |
1.3.9.1