Class SCBlockingTakeStrategy
java.lang.Object
kieker.monitoring.queue.takestrategy.SCBlockingTakeStrategy
- All Implemented Interfaces:
TakeStrategy
This take strategy blocks if the queue is empty.
IMPORTANT: This take strategy only works correctly if at most one consumer accesses the queue.
IMPORTANT: This take strategy only works correctly if at most one consumer accesses the queue.
- Since:
- 1.13
- Author:
- Christian Wulf
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
storeFence
public volatile int storeFence
-
-
Constructor Details
-
SCBlockingTakeStrategy
public SCBlockingTakeStrategy()
-
-
Method Details
-
signal
public void signal()- Specified by:
signalin interfaceTakeStrategy
-
waitPoll
- Specified by:
waitPollin interfaceTakeStrategy- Throws:
InterruptedException
-