public class CapacityBoundedEventQueue extends ArrayBlockingQueue<Sequenced<? extends ChangeEvent>>
| Constructor and Description |
|---|
CapacityBoundedEventQueue(int queueSize,
long capacity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
offer(Sequenced<? extends ChangeEvent> event) |
boolean |
offer(Sequenced<? extends ChangeEvent> event,
long timeout,
TimeUnit unit) |
Sequenced<? extends ChangeEvent> |
poll() |
Sequenced<? extends ChangeEvent> |
poll(long timeout,
TimeUnit unit) |
void |
put(Sequenced<? extends ChangeEvent> event) |
Sequenced<? extends ChangeEvent> |
take() |
add, clear, contains, drainTo, drainTo, iterator, peek, remainingCapacity, remove, size, spliterator, toArray, toArray, toStringaddAll, element, removecontainsAll, isEmpty, removeAll, retainAllclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAll, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, streampublic CapacityBoundedEventQueue(int queueSize,
long capacity)
public void put(Sequenced<? extends ChangeEvent> event) throws InterruptedException
put in interface BlockingQueue<Sequenced<? extends ChangeEvent>>put in class ArrayBlockingQueue<Sequenced<? extends ChangeEvent>>InterruptedExceptionpublic boolean offer(Sequenced<? extends ChangeEvent> event)
offer in interface BlockingQueue<Sequenced<? extends ChangeEvent>>offer in interface Queue<Sequenced<? extends ChangeEvent>>offer in class ArrayBlockingQueue<Sequenced<? extends ChangeEvent>>public boolean offer(Sequenced<? extends ChangeEvent> event, long timeout, TimeUnit unit) throws InterruptedException
offer in interface BlockingQueue<Sequenced<? extends ChangeEvent>>offer in class ArrayBlockingQueue<Sequenced<? extends ChangeEvent>>InterruptedExceptionpublic Sequenced<? extends ChangeEvent> poll()
poll in interface Queue<Sequenced<? extends ChangeEvent>>poll in class ArrayBlockingQueue<Sequenced<? extends ChangeEvent>>public Sequenced<? extends ChangeEvent> take() throws InterruptedException
take in interface BlockingQueue<Sequenced<? extends ChangeEvent>>take in class ArrayBlockingQueue<Sequenced<? extends ChangeEvent>>InterruptedExceptionpublic Sequenced<? extends ChangeEvent> poll(long timeout, TimeUnit unit) throws InterruptedException
poll in interface BlockingQueue<Sequenced<? extends ChangeEvent>>poll in class ArrayBlockingQueue<Sequenced<? extends ChangeEvent>>InterruptedExceptionCopyright © 2023 CDAP Licensed under the Apache License, Version 2.0.