T - typepublic class SQueue<T> extends Object implements com.hazelcast.core.IQueue<T>
| Constructor and Description |
|---|
SQueue(com.hazelcast.core.IQueue<byte[]> baseQueue,
org.onosproject.store.serializers.StoreSerializer serializer)
Creates a SQueue instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T t) |
boolean |
addAll(Collection<? extends T> collection)
Deprecated.
|
String |
addItemListener(com.hazelcast.core.ItemListener<T> itemListener,
boolean withValue) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> collection)
Deprecated.
|
void |
destroy() |
int |
drainTo(Collection<? super T> collection)
Deprecated.
|
int |
drainTo(Collection<? super T> collection,
int i)
Deprecated.
|
T |
element() |
Object |
getId()
Deprecated.
|
com.hazelcast.monitor.LocalQueueStats |
getLocalQueueStats() |
String |
getName() |
String |
getPartitionKey() |
String |
getServiceName() |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
boolean |
offer(T t) |
boolean |
offer(T t,
long l,
TimeUnit timeUnit) |
T |
peek() |
T |
poll() |
T |
poll(long l,
TimeUnit timeUnit) |
void |
put(T t) |
int |
remainingCapacity() |
T |
remove() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> collection)
Deprecated.
|
boolean |
removeItemListener(String registrationId) |
boolean |
retainAll(Collection<?> collection)
Deprecated.
|
int |
size() |
T |
take() |
Object[] |
toArray()
Deprecated.
|
<T1> T1[] |
toArray(T1[] t1s)
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, parallelStream, removeIf, spliterator, streampublic SQueue(com.hazelcast.core.IQueue<byte[]> baseQueue,
org.onosproject.store.serializers.StoreSerializer serializer)
baseQueue - base IQueue to useserializer - serializer to use for both key and valuepublic boolean add(T t)
add in interface Collection<T>add in interface BlockingQueue<T>add in interface Queue<T>public boolean offer(T t)
public void put(T t) throws InterruptedException
put in interface BlockingQueue<T>InterruptedExceptionpublic boolean offer(T t, long l, TimeUnit timeUnit) throws InterruptedException
offer in interface com.hazelcast.core.BaseQueue<T>offer in interface BlockingQueue<T>InterruptedExceptionpublic T take() throws InterruptedException
take in interface com.hazelcast.core.BaseQueue<T>take in interface com.hazelcast.core.IQueue<T>take in interface BlockingQueue<T>InterruptedExceptionpublic T poll(long l, TimeUnit timeUnit) throws InterruptedException
poll in interface com.hazelcast.core.BaseQueue<T>poll in interface com.hazelcast.core.IQueue<T>poll in interface BlockingQueue<T>InterruptedExceptionpublic int remainingCapacity()
remainingCapacity in interface BlockingQueue<T>public boolean remove(Object o)
remove in interface Collection<T>remove in interface BlockingQueue<T>public boolean contains(Object o)
contains in interface Collection<T>contains in interface BlockingQueue<T>@Deprecated public int drainTo(Collection<? super T> collection)
drainTo in interface BlockingQueue<T>@Deprecated public int drainTo(Collection<? super T> collection, int i)
drainTo in interface BlockingQueue<T>public T poll()
public int size()
size in interface com.hazelcast.core.BaseQueue<T>size in interface Collection<T>public boolean isEmpty()
isEmpty in interface Collection<T>@Deprecated public Object[] toArray()
toArray in interface Collection<T>@Deprecated public <T1> T1[] toArray(T1[] t1s)
toArray in interface Collection<T>@Deprecated public boolean containsAll(Collection<?> collection)
containsAll in interface Collection<T>@Deprecated public boolean addAll(Collection<? extends T> collection)
addAll in interface Collection<T>@Deprecated public boolean removeAll(Collection<?> collection)
removeAll in interface Collection<T>@Deprecated public boolean retainAll(Collection<?> collection)
retainAll in interface Collection<T>public void clear()
clear in interface Collection<T>public com.hazelcast.monitor.LocalQueueStats getLocalQueueStats()
getLocalQueueStats in interface com.hazelcast.core.IQueue<T>public String addItemListener(com.hazelcast.core.ItemListener<T> itemListener, boolean withValue)
addItemListener in interface com.hazelcast.core.ICollection<T>public boolean removeItemListener(String registrationId)
removeItemListener in interface com.hazelcast.core.ICollection<T>@Deprecated public Object getId()
getId in interface com.hazelcast.core.DistributedObjectpublic String getPartitionKey()
getPartitionKey in interface com.hazelcast.core.DistributedObjectpublic String getName()
getName in interface com.hazelcast.core.DistributedObjectgetName in interface com.hazelcast.core.ICollection<T>public String getServiceName()
getServiceName in interface com.hazelcast.core.DistributedObjectpublic void destroy()
destroy in interface com.hazelcast.core.DistributedObjectCopyright © 2015. All rights reserved.