Package at.jku.ssw.fp.sect10_7
Class Demo4_Request
- java.lang.Object
-
- at.jku.ssw.fp.sect10_7.Demo4_Request
-
public class Demo4_Request extends Object
Demo program implementing a streaming of a text with backpressure. Uses explicit requests from consumer to control the flow.- Author:
- Herbert Prähofer
-
-
Field Summary
Fields Modifier and Type Field Description private static int
DELAY
private static CountDownLatch
teriminateLatch
-
Constructor Summary
Constructors Constructor Description Demo4_Request()
-
-
-
Field Detail
-
DELAY
private static final int DELAY
- See Also:
- Constant Field Values
-
teriminateLatch
private static CountDownLatch teriminateLatch
-
-
Method Detail
-
main
public static void main(String[] args) throws InterruptedException
- Throws:
InterruptedException
-
-