public class FrameDataExchange
extends java.lang.Object
| Constructor and Description |
|---|
FrameDataExchange() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getEmptyForFull(byte[] fbuf)
Producer method -- blocks if necessary until consumer supplies
next empty buffer, but does not wait for consumer to take next full buffer.
|
byte[] |
getFullForEmpty(byte[] ebuf)
Consumer method -- assumes previous empty buffer (if any) has already
been taken, but blocks if necessary until producer supplies next
full buffer.
|
public byte[] getEmptyForFull(byte[] fbuf)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic byte[] getFullForEmpty(byte[] ebuf)
throws java.lang.InterruptedException
java.lang.InterruptedException