public class TracingQueue<E> extends Object implements com.hazelcast.core.IQueue<E>
| Constructor and Description |
|---|
TracingQueue(com.hazelcast.core.IQueue<E> queue,
boolean traceWithActiveSpanOnly) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E element) |
boolean |
addAll(Collection<? extends E> collection) |
String |
addItemListener(com.hazelcast.core.ItemListener<E> listener,
boolean includeValue) |
void |
clear() |
boolean |
contains(Object element) |
boolean |
containsAll(Collection<?> collection) |
void |
destroy() |
int |
drainTo(Collection<? super E> collection) |
int |
drainTo(Collection<? super E> collection,
int maxElements) |
E |
element() |
boolean |
equals(Object element) |
void |
forEach(Consumer<? super E> action) |
com.hazelcast.monitor.LocalQueueStats |
getLocalQueueStats() |
String |
getName() |
String |
getPartitionKey() |
String |
getServiceName() |
int |
hashCode() |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
boolean |
offer(E element) |
boolean |
offer(E element,
long timeout,
TimeUnit unit) |
Stream<E> |
parallelStream() |
E |
peek() |
E |
poll() |
E |
poll(long timeout,
TimeUnit unit) |
void |
put(E element) |
int |
remainingCapacity() |
E |
remove() |
boolean |
remove(Object element) |
boolean |
removeAll(Collection<?> collection) |
boolean |
removeIf(Predicate<? super E> filter) |
boolean |
removeItemListener(String registrationId) |
boolean |
retainAll(Collection<?> collection) |
int |
size() |
Spliterator<E> |
spliterator() |
Stream<E> |
stream() |
E |
take() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
public TracingQueue(com.hazelcast.core.IQueue<E> queue, boolean traceWithActiveSpanOnly)
public E poll()
public E poll(long timeout, TimeUnit unit) throws InterruptedException
poll in interface com.hazelcast.core.BaseQueue<E>poll in interface com.hazelcast.core.IQueue<E>poll in interface BlockingQueue<E>InterruptedExceptionpublic E take() throws InterruptedException
take in interface com.hazelcast.core.BaseQueue<E>take in interface com.hazelcast.core.IQueue<E>take in interface BlockingQueue<E>InterruptedExceptionpublic com.hazelcast.monitor.LocalQueueStats getLocalQueueStats()
getLocalQueueStats in interface com.hazelcast.core.IQueue<E>public boolean add(E element)
add in interface Collection<E>add in interface BlockingQueue<E>add in interface Queue<E>public boolean offer(E element)
public void put(E element) throws InterruptedException
put in interface BlockingQueue<E>InterruptedExceptionpublic boolean offer(E element, long timeout, TimeUnit unit) throws InterruptedException
offer in interface com.hazelcast.core.BaseQueue<E>offer in interface BlockingQueue<E>InterruptedExceptionpublic int remainingCapacity()
remainingCapacity in interface BlockingQueue<E>public boolean remove(Object element)
remove in interface Collection<E>remove in interface BlockingQueue<E>public boolean contains(Object element)
contains in interface Collection<E>contains in interface BlockingQueue<E>public int drainTo(Collection<? super E> collection)
drainTo in interface BlockingQueue<E>public int drainTo(Collection<? super E> collection, int maxElements)
drainTo in interface BlockingQueue<E>public int size()
size in interface com.hazelcast.core.BaseQueue<E>size in interface Collection<E>public boolean isEmpty()
isEmpty in interface Collection<E>public Object[] toArray()
toArray in interface Collection<E>public <T> T[] toArray(T[] a)
toArray in interface Collection<E>public boolean containsAll(Collection<?> collection)
containsAll in interface Collection<E>public boolean addAll(Collection<? extends E> collection)
addAll in interface Collection<E>public boolean removeAll(Collection<?> collection)
removeAll in interface Collection<E>public boolean removeIf(Predicate<? super E> filter)
removeIf in interface Collection<E>public boolean retainAll(Collection<?> collection)
retainAll in interface Collection<E>public void clear()
clear in interface Collection<E>public boolean equals(Object element)
equals in interface Collection<E>equals in class Objectpublic int hashCode()
hashCode in interface Collection<E>hashCode in class Objectpublic Spliterator<E> spliterator()
spliterator in interface Iterable<E>spliterator in interface Collection<E>public Stream<E> stream()
stream in interface Collection<E>public Stream<E> parallelStream()
parallelStream in interface Collection<E>public String getPartitionKey()
getPartitionKey in interface com.hazelcast.core.DistributedObjectpublic String getName()
getName in interface com.hazelcast.core.DistributedObjectgetName in interface com.hazelcast.core.ICollection<E>public String getServiceName()
getServiceName in interface com.hazelcast.core.DistributedObjectpublic void destroy()
destroy in interface com.hazelcast.core.DistributedObjectpublic String addItemListener(com.hazelcast.core.ItemListener<E> listener, boolean includeValue)
addItemListener in interface com.hazelcast.core.ICollection<E>Copyright © 2018-2019–2019. All rights reserved.