![]() |
Quadcap Embeddable Server |
Definition at line 54 of file Stream.java.
Public Member Functions | |
| Stream () | |
| Construct a new stream using defaults. | |
| Stream (int maxSize) | |
| Construct a new stream with a specified buffer size. | |
| Object | read () |
| Return the next item from the stream. | |
| void | write (Object obj) |
| Write an item to the stream. | |
| void | close () |
| Close this stream. | |
Package Attributes | |
| int | maxSize = 10 |
| DList | queue = new DList() |
| boolean | full = false |
| boolean | closed = false |
|
|
Construct a new stream using defaults.
Definition at line 63 of file Stream.java. |
|
|
Construct a new stream with a specified buffer size.
Definition at line 70 of file Stream.java. |
|
|
Close this stream.
Definition at line 133 of file Stream.java. References com.quadcap.util.threads.Stream.closed, and com.quadcap.util.threads.Stream.queue. |
|
|
Return the next item from the stream. Block if the stream's empty.
Definition at line 79 of file Stream.java. References com.quadcap.util.threads.Stream.closed, com.quadcap.util.threads.Stream.full, com.quadcap.util.DListItem.obj, com.quadcap.util.DList.popFront(), com.quadcap.util.threads.Stream.queue, and com.quadcap.util.DList.size. |
|
|
Write an item to the stream. Block if the stream buffer is full.
Definition at line 112 of file Stream.java. References com.quadcap.util.DList.addBack(), com.quadcap.util.threads.Stream.closed, com.quadcap.util.threads.Stream.full, com.quadcap.util.threads.Stream.maxSize, com.quadcap.util.threads.Stream.queue, com.quadcap.util.DList.size, and com.quadcap.util.threads.Stream.write(). Referenced by com.quadcap.util.threads.PeriodicScheduler.run(), and com.quadcap.util.threads.Stream.write(). |
|
|
Definition at line 58 of file Stream.java. Referenced by com.quadcap.util.threads.Stream.close(), com.quadcap.util.threads.Stream.read(), and com.quadcap.util.threads.Stream.write(). |
|
|
Definition at line 57 of file Stream.java. Referenced by com.quadcap.util.threads.Stream.read(), and com.quadcap.util.threads.Stream.write(). |
|
|
Definition at line 55 of file Stream.java. Referenced by com.quadcap.util.threads.Stream.write(). |
|
|
Definition at line 56 of file Stream.java. Referenced by com.quadcap.util.threads.Stream.close(), com.quadcap.util.threads.Stream.read(), and com.quadcap.util.threads.Stream.write(). |