public class YieldPutStrategy<E> extends Object implements PutStrategy<E>
| Constructor and Description |
|---|
YieldPutStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
signal() |
boolean |
supportsSpec(ConcurrentQueueSpec qs) |
void |
waitOffer(Queue<E> q,
E e) |
public void waitOffer(Queue<E> q, E e) throws InterruptedException
waitOffer in interface PutStrategy<E>InterruptedExceptionpublic void signal()
signal in interface PutStrategy<E>public boolean supportsSpec(ConcurrentQueueSpec qs)
supportsSpec in interface PutStrategy<E>Copyright © 2013–2023. All rights reserved.