com.hazelcast.client.txn.proxy
Class ClientTxnQueueProxy<E>

java.lang.Object
  extended by com.hazelcast.client.txn.proxy.ClientTxnQueueProxy<E>
All Implemented Interfaces:
BaseQueue<E>, DistributedObject, TransactionalQueue<E>, TransactionalObject

public class ClientTxnQueueProxy<E>
extends Object
implements TransactionalQueue<E>

Author:
ali 6/7/13

Constructor Summary
ClientTxnQueueProxy(String name, TransactionContextProxy proxy)
           
 
Method Summary
 void destroy()
           
 Object getId()
           
 String getName()
           
 String getPartitionKey()
           
 String getServiceName()
           
 boolean offer(E e)
           
 boolean offer(E e, long timeout, TimeUnit unit)
           
 E peek()
           
 E peek(long timeout, TimeUnit unit)
           
 E poll()
           
 E poll(long timeout, TimeUnit unit)
           
 int size()
           
 E take()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.hazelcast.core.DistributedObject
destroy, getId, getPartitionKey
 

Constructor Detail

ClientTxnQueueProxy

public ClientTxnQueueProxy(String name,
                           TransactionContextProxy proxy)
Method Detail

offer

public boolean offer(E e)
Specified by:
offer in interface BaseQueue<E>
Specified by:
offer in interface TransactionalQueue<E>

offer

public boolean offer(E e,
                     long timeout,
                     TimeUnit unit)
              throws InterruptedException
Specified by:
offer in interface BaseQueue<E>
Specified by:
offer in interface TransactionalQueue<E>
Throws:
InterruptedException

take

public E take()
       throws InterruptedException
Specified by:
take in interface BaseQueue<E>
Specified by:
take in interface TransactionalQueue<E>
Throws:
InterruptedException

poll

public E poll()
Specified by:
poll in interface BaseQueue<E>
Specified by:
poll in interface TransactionalQueue<E>

poll

public E poll(long timeout,
              TimeUnit unit)
       throws InterruptedException
Specified by:
poll in interface BaseQueue<E>
Specified by:
poll in interface TransactionalQueue<E>
Throws:
InterruptedException

peek

public E peek()
Specified by:
peek in interface TransactionalQueue<E>

peek

public E peek(long timeout,
              TimeUnit unit)
       throws InterruptedException
Specified by:
peek in interface TransactionalQueue<E>
Throws:
InterruptedException

size

public int size()
Specified by:
size in interface BaseQueue<E>
Specified by:
size in interface TransactionalQueue<E>

getName

public String getName()
Specified by:
getName in interface DistributedObject

getServiceName

public String getServiceName()
Specified by:
getServiceName in interface DistributedObject

destroy

public final void destroy()
Specified by:
destroy in interface DistributedObject

getId

public Object getId()
Specified by:
getId in interface DistributedObject

getPartitionKey

public String getPartitionKey()
Specified by:
getPartitionKey in interface DistributedObject


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.