com.hazelcast.client
Class QueueClientProxy<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<E>
com.hazelcast.client.QueueClientProxy<E>
- All Implemented Interfaces:
- ICollection<E>, Instance, IQueue<E>, Iterable<E>, Collection<E>, BlockingQueue<E>, Queue<E>
public class QueueClientProxy<E>
- extends AbstractQueue<E>
- implements IQueue<E>
proxyHelper
protected final ProxyHelper proxyHelper
name
protected final String name
QueueClientProxy
public QueueClientProxy(HazelcastClient hazelcastClient,
String name)
getName
public String getName()
- Specified by:
getName in interface ICollection<E>
getInstanceType
public Instance.InstanceType getInstanceType()
- Specified by:
getInstanceType in interface Instance
destroy
public void destroy()
- Specified by:
destroy in interface Instance
getId
public Object getId()
- Specified by:
getId in interface Instance
toString
public String toString()
- Overrides:
toString in class AbstractCollection<E>
hashCode
public int hashCode()
- Specified by:
hashCode in interface Collection<E>- Overrides:
hashCode in class Object
getLocalQueueStats
public LocalQueueStats getLocalQueueStats()
- Specified by:
getLocalQueueStats in interface IQueue<E>
offer
public boolean offer(E e)
- Specified by:
offer in interface BlockingQueue<E>- Specified by:
offer in interface Queue<E>
poll
public E poll()
- Specified by:
poll in interface Queue<E>
peek
public E peek()
- Specified by:
peek in interface Queue<E>
offer
public boolean offer(E e,
long l,
TimeUnit timeUnit)
throws InterruptedException
- Specified by:
offer in interface BlockingQueue<E>
- Throws:
InterruptedException
poll
public E poll(long l,
TimeUnit timeUnit)
throws InterruptedException
- Specified by:
poll in interface BlockingQueue<E>
- Throws:
InterruptedException
take
public E take()
throws InterruptedException
- Specified by:
take in interface BlockingQueue<E>
- Throws:
InterruptedException
put
public void put(E e)
throws InterruptedException
- Specified by:
put in interface BlockingQueue<E>
- Throws:
InterruptedException
remainingCapacity
public int remainingCapacity()
- Specified by:
remainingCapacity in interface BlockingQueue<E>
drainTo
public int drainTo(Collection<? super E> objects)
- Specified by:
drainTo in interface BlockingQueue<E>
drainTo
public int drainTo(Collection<? super E> objects,
int i)
- Specified by:
drainTo in interface BlockingQueue<E>
size
public int size()
- Specified by:
size in interface Collection<E>- Specified by:
size in class AbstractCollection<E>
equals
public boolean equals(Object o)
- Specified by:
equals in interface Collection<E>- Overrides:
equals in class Object
remove
public boolean remove(Object o)
- Specified by:
remove in interface Collection<E>- Specified by:
remove in interface BlockingQueue<E>- Overrides:
remove in class AbstractCollection<E>
iterator
public Iterator<E> iterator()
- Specified by:
iterator in interface Iterable<E>- Specified by:
iterator in interface Collection<E>- Specified by:
iterator in class AbstractCollection<E>
addItemListener
public void addItemListener(ItemListener<E> listener,
boolean includeValue)
- Specified by:
addItemListener in interface ICollection<E>
removeItemListener
public void removeItemListener(ItemListener<E> listener)
- Specified by:
removeItemListener in interface ICollection<E>
Copyright © 2012 Hazel Bilisim Ltd.. All Rights Reserved.