public class QProxyImpl extends AbstractQueue implements QProxy, HazelcastInstanceAwareInstance, DataSerializable
Instance.InstanceType| Constructor and Description |
|---|
QProxyImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addItemListener(ItemListener listener,
boolean includeValue)
Adds an item listener for this collection.
|
void |
destroy()
Destroys this instance cluster-wide.
|
int |
drainTo(Collection c) |
int |
drainTo(Collection c,
int maxElements) |
boolean |
equals(Object o) |
FactoryImpl |
getFactory() |
Object |
getId()
Returns the unique id for this instance.
|
Instance.InstanceType |
getInstanceType()
Returns instance type such as map, set, list, lock, topic, multimap, id generator
|
LocalQueueStats |
getLocalQueueStats() |
String |
getLongName() |
String |
getName()
Returns the name of this collection
|
QueueOperationsCounter |
getQueueOperationCounter() |
int |
hashCode() |
Iterator |
iterator() |
boolean |
offer(Object o) |
boolean |
offer(Object obj,
long timeout,
TimeUnit unit) |
Object |
peek() |
Object |
poll() |
Object |
poll(long timeout,
TimeUnit unit) |
void |
put(Object obj) |
void |
readData(DataInput in) |
int |
remainingCapacity() |
void |
removeItemListener(ItemListener listener)
Removes the specified item listener.
|
void |
setHazelcastInstance(HazelcastInstance hazelcastInstance) |
int |
size() |
Object |
take() |
String |
toString() |
void |
writeData(DataOutput out) |
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, contains, removeaddAll, clear, containsAll, isEmpty, removeAll, retainAll, toArray, toArraypublic FactoryImpl getFactory()
public String getLongName()
getLongName in interface QProxypublic void setHazelcastInstance(HazelcastInstance hazelcastInstance)
setHazelcastInstance in interface HazelcastInstanceAwarepublic Object getId()
Instancepublic String toString()
toString in class AbstractCollectionpublic boolean equals(Object o)
equals in interface Collectionequals in class Objectpublic int hashCode()
hashCode in interface CollectionhashCode in class Objectpublic void writeData(DataOutput out) throws IOException
writeData in interface DataSerializableIOExceptionpublic void readData(DataInput in) throws IOException
readData in interface DataSerializableIOExceptionpublic LocalQueueStats getLocalQueueStats()
getLocalQueueStats in interface IQueuepublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in class AbstractCollectionpublic int size()
size in interface Collectionsize in class AbstractCollectionpublic void addItemListener(ItemListener listener, boolean includeValue)
ICollectionaddItemListener in interface ICollectionlistener - item listenerincludeValue - true updated item should be passed
to the item listener, false otherwise.public void removeItemListener(ItemListener listener)
ICollectionremoveItemListener in interface ICollectionlistener - item listener for this collectionpublic String getName()
ICollectiongetName in interface ICollectionpublic int drainTo(Collection c)
drainTo in interface BlockingQueuepublic int drainTo(Collection c, int maxElements)
drainTo in interface BlockingQueuepublic void destroy()
Instancepublic Instance.InstanceType getInstanceType()
InstancegetInstanceType in interface Instancepublic boolean offer(Object o)
offer in interface BlockingQueueoffer in interface Queuepublic boolean offer(Object obj, long timeout, TimeUnit unit) throws InterruptedException
offer in interface BlockingQueueInterruptedExceptionpublic void put(Object obj) throws InterruptedException
put in interface BlockingQueueInterruptedExceptionpublic Object poll(long timeout, TimeUnit unit) throws InterruptedException
poll in interface BlockingQueueInterruptedExceptionpublic Object take() throws InterruptedException
take in interface BlockingQueueInterruptedExceptionpublic int remainingCapacity()
remainingCapacity in interface BlockingQueuepublic QueueOperationsCounter getQueueOperationCounter()
getQueueOperationCounter in interface QProxyCopyright © 2013 Hazelcast, Inc.. All rights reserved.