public class YieldPutStrategy<E> extends java.lang.Object implements PutStrategy<E>
Constructor and Description |
---|
YieldPutStrategy() |
Modifier and Type | Method and Description |
---|---|
void |
signal() |
boolean |
supportsSpec(ConcurrentQueueSpec qs) |
void |
waitOffer(java.util.Queue<E> q,
E e) |
public void waitOffer(java.util.Queue<E> q, E e) throws java.lang.InterruptedException
waitOffer
in interface PutStrategy<E>
java.lang.InterruptedException
public void signal()
signal
in interface PutStrategy<E>
public boolean supportsSpec(ConcurrentQueueSpec qs)
supportsSpec
in interface PutStrategy<E>