Class SPBlockingPutStrategy
java.lang.Object
kieker.monitoring.queue.putstrategy.SPBlockingPutStrategy
- All Implemented Interfaces:
PutStrategy
This take strategy blocks if the queue is full.
IMPORTANT: This put strategy only works correctly if at most one producer accesses the queue.
IMPORTANT: This put strategy only works correctly if at most one producer 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
-
SPBlockingPutStrategy
public SPBlockingPutStrategy()
-
-
Method Details
-
signal
public void signal()- Specified by:
signalin interfacePutStrategy
-
backoffOffer
- Specified by:
backoffOfferin interfacePutStrategy- Type Parameters:
E- element type- Parameters:
q- queuee- element- Throws:
InterruptedException- on interruption of the queue
-