com.hazelcast.client
Class QueueClientProxy<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractQueue<E>
          extended by 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>


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.hazelcast.core.Instance
Instance.InstanceType
 
Field Summary
protected  String name
           
protected  ProxyHelper proxyHelper
           
 
Constructor Summary
QueueClientProxy(HazelcastClient hazelcastClient, String name)
           
 
Method Summary
 void addItemListener(ItemListener<E> listener, boolean includeValue)
           
 void destroy()
           
 int drainTo(Collection<? super E> objects)
           
 int drainTo(Collection<? super E> objects, int i)
           
 boolean equals(Object o)
           
 Object getId()
           
 Instance.InstanceType getInstanceType()
           
 LocalQueueStats getLocalQueueStats()
           
 String getName()
           
 int hashCode()
           
 Iterator<E> iterator()
           
 boolean offer(E e)
           
 boolean offer(E e, long l, TimeUnit timeUnit)
           
 E peek()
           
 E poll()
           
 E poll(long l, TimeUnit timeUnit)
           
 void put(E e)
           
 int remainingCapacity()
           
 boolean remove(Object o)
           
 void removeItemListener(ItemListener<E> listener)
           
 int size()
           
 E take()
           
 String toString()
           
 
Methods inherited from class java.util.AbstractQueue
add, addAll, clear, element, remove
 
Methods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.concurrent.BlockingQueue
add, contains
 
Methods inherited from interface java.util.Queue
element, remove
 
Methods inherited from interface java.util.Collection
addAll, clear, containsAll, isEmpty, removeAll, retainAll, toArray, toArray
 

Field Detail

proxyHelper

protected final ProxyHelper proxyHelper

name

protected final String name
Constructor Detail

QueueClientProxy

public QueueClientProxy(HazelcastClient hazelcastClient,
                        String name)
Method Detail

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.