|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectapp.util.SynchBufSingleProd<E>
app.util.SynchBufMultiProd<E>
public final class SynchBufMultiProd<E>
A synchronized buffer with a generic buffered item type,
for the use of one or more producer threads and a single consumer thread.
This differs from its superclass SynchBufSingleProd
only in
the extra synchronization it applies to the put(Object)
method
in order to impose mutual exclusion on the producer threads' access
to the buffer.
Constructor Summary | |
---|---|
SynchBufMultiProd()
Constructs a new multi-producer synchronized buffer. |
Method Summary | |
---|---|
void |
put(E item)
Producer side of a synchronized distributed exchange via this buffer. |
Methods inherited from class app.util.SynchBufSingleProd |
---|
get |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SynchBufMultiProd()
Method Detail |
---|
public final void put(E item) throws java.lang.InterruptedException
put
in class SynchBufSingleProd<E>
java.lang.InterruptedException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |