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>
InterruptedException
public void signal()
signal
in interface PutStrategy<E>
public boolean supportsSpec(ConcurrentQueueSpec qs)
supportsSpec
in interface PutStrategy<E>
Copyright © 2013–2022. All rights reserved.