java.lang.Object | ||
↳ | org.apache.commons.collections.collection.SynchronizedCollection | |
↳ | org.apache.commons.collections.buffer.SynchronizedBuffer |
Known Direct Subclasses |
Decorates another Buffer
to synchronize its behaviour
for a multi-threaded environment.
Methods are synchronized, then forwarded to the decorated buffer.
This class is Serializable from Commons Collections 3.1.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.commons.collections.collection.SynchronizedCollection
|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor that wraps (not copies).
| |||||||||||
Constructor that wraps (not copies).
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Factory method to create a synchronized buffer.
| |||||||||||
Gets the next object from the buffer without removing it.
| |||||||||||
Gets and removes the next object from the buffer.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the buffer being decorated.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.commons.collections.collection.SynchronizedCollection
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.lang.Iterable
| |||||||||||
From interface
java.util.Collection
| |||||||||||
From interface
org.apache.commons.collections.Buffer
|
Constructor that wraps (not copies).
buffer | the buffer to decorate, must not be null |
---|
IllegalArgumentException | if the buffer is null |
---|
Constructor that wraps (not copies).
buffer | the buffer to decorate, must not be null |
---|---|
lock | the lock object to use, must not be null |
IllegalArgumentException | if the buffer is null |
---|
Factory method to create a synchronized buffer.
buffer | the buffer to decorate, must not be null |
---|
IllegalArgumentException | if buffer is null |
---|
Gets the next object from the buffer without removing it.
Gets and removes the next object from the buffer.