java.lang.Object | +--org.apache.commons.collections.collection.SynchronizedCollection | +--org.apache.commons.collections.buffer.SynchronizedBufferAll Implemented Interfaces:
SynchronizedBuffer(Buffer buffer) Constructor that wraps (not copies). |
SynchronizedBuffer(Buffer buffer, Object lock) Constructor that wraps (not copies). |
static Buffer | Factory method to create a synchronized buffer. |
Object | get() |
Gets the buffer being decorated. | |
Object | remove() |
protected SynchronizedBuffer(Buffer buffer, Object lock)
- if the buffer is nullprotected SynchronizedBuffer(Buffer buffer)
- if the buffer is nullpublic static Buffer decorate(Buffer buffer)
- if buffer is nullpublic Object get()
protected Buffer getBuffer()
public Object remove()
Buffer
to synchronize its behaviour for a multi-threaded environment. Methods are synchronized, then forwarded to the decorated buffer.